## Search found 70 matches

Tue Sep 29, 2020 8:28 am
Forum: DM42
Topic: [MIN],[MAX] and [FIND]...how to?
Replies: 8
Views: 238

### Re: [MIN],[MAX] and [FIND]...how to?

An example says more than a thousand words ;-) Create the matrix [[ 4 5 6 ] [ 7 8 9 ] [ 1 2 3 ]] Then: >LBL "M" EDIT Rv [MAX] RCLEL EXITALL Rv END will produce the max of the first column of the matrix, with its row value in Y. You are EDITing the matrix, so EXITALL will write whatever is in X into ...
Mon Sep 28, 2020 4:52 pm
Forum: DM42
Topic: [MIN],[MAX] and [FIND]...how to?
Replies: 8
Views: 238

### Re: [MIN],[MAX] and [FIND]...how to?

Edit: I just tested this in Free42 Windows. The [FIND] function doesn't seem to work with a matrix that's only on the stack; you need to first STO the matrix and then INDEX it as documented by Joe Horn. The matrix that's been most recently indexed is the one that [FIND] will try to search in. You c...
Mon Sep 28, 2020 7:39 am
Forum: DM42
Topic: [MIN],[MAX] and [FIND]...how to?
Replies: 8
Views: 238

### Re: [MIN],[MAX] and [FIND]...how to?

I don't quite understand what more help you need apart from Joe's very extensive documentation of these functions?
Werner
Thu Aug 20, 2020 11:09 am
Forum: DM42
Topic: Cornu Spiral (Fresnel integrals)
Replies: 4
Views: 381

### Re: Cornu Spiral (Fresnel integrals)

dlachieze wrote:
Wed Aug 19, 2020 4:04 pm
[*]replacing Tim's LINE program with Werner’s LINE version from here gives an interesting spiral !
Oops quite a bug there.. I'll see what I can do to correct that.
Thanks, Werner
[Update: correction done, link now contains corrected program]
Wed Aug 19, 2020 1:19 pm
Forum: DM42
Topic: Cornu Spiral (Fresnel integrals)
Replies: 4
Views: 381

### Re: Cornu Spiral (Fresnel integrals)

Source code! My kingdom for the source code!
Werner
Mon Aug 17, 2020 11:01 am
Forum: DM42
Topic: time and date math
Replies: 9
Views: 622

### Re: time and date math

As it happens, I used the following to determine when to check my DM42 for clock drift, after 2 million seconds: DATE/TIME + n seconds In: Z: Date (current format) Y: Time HH.MMSS X: n (number of seconds) Out: Y: Date (current format) X: Time HH.MMSS 00 { 38-Byte Prgm } 01▸LBL "DTS+" 02 3600 03 ÷ 04...
Thu Aug 06, 2020 8:50 am
Forum: Usage tips, tricks and problem reports
Topic: DM42- clock losing time
Replies: 99
Views: 28150

### Re: DM42- clock losing time

Nono, it was a *question*! I have no idea what the sign of C should be in the RTC correction file.
So let me (us) know whether your correction for a slow clock works.
Cheers, Werner
Wed Aug 05, 2020 9:07 am
Forum: Usage tips, tricks and problem reports
Topic: DM42- clock losing time
Replies: 99
Views: 28150

### Re: DM42- clock losing time

So, your clock is slow, and you apply a negative C. Let me know if that is correct;-)
Werner
Wed Jul 29, 2020 9:51 am
Forum: Usage tips, tricks and problem reports
Topic: DM42- clock losing time
Replies: 99
Views: 28150

### Re: DM42- clock losing time

Regarding the RTC correction: if your DM42 clock is fast (i.e. it shows a later time), should the factor C be positive or negative? It's not clear from the description, so I have a 50/50 chance of being right, meaning I'll be wrong
Werner
Thu Jul 23, 2020 12:21 pm
Forum: Usage tips, tricks and problem reports
Topic: Local Flags
Replies: 0
Views: 207

### Local Flags

LSTO has given us local variables, but we do not have local flags. We can use a local variable (say, "F") to store a flag, and at first glance, 0 for a clear flag and 1 for a set flag would seem logical. However, the values -1e99 and 1e99 (the exponents are not important as long as they are larger t...