Search found 35 matches

by whuyse
Wed Feb 13, 2019 9:18 am
Forum: DM42
Topic: Looking forward to the DM42 update utilizing the Free42 2.023 update...
Replies: 16
Views: 559

Re: Looking forward to the DM42 update utilizing the Free42 2.023 update...

Thomas Okken wrote:
Tue Feb 12, 2019 10:58 am
  • More accurate 2x2 matrix operations
  • More accurate dot product using FMA
Yes!!! As this is something the real 42S does, as well (albeit not with FMAs)
Cheers, Werner
by whuyse
Sat Feb 02, 2019 10:01 am
Forum: Usage tips, tricks and problem reports
Topic: The Stack (according to Free42 Manual)
Replies: 19
Views: 636

Re: The Stack (according to Free42 Manual)

Perhaps you should read the first post in this thread before replying.. ;-)
This is about RPN on the DM42, and of course Joe's remarks are also entirely accurate, as usual.
(well, except for Z=9 which should've been T=9 ;-)

Cheers, Werner
by whuyse
Wed Jan 30, 2019 12:20 pm
Forum: Usage tips, tricks and problem reports
Topic: newbie and coding help needed
Replies: 6
Views: 438

Re: newbie and coding help needed

Just for completeness: the GETKEY approach does work, but it doesn't catch EXIT or the new softkeys. This is what I used to try it out, with the up/down arrow keys and S+ for left and XEQ to go right: 00 { 48-Byte Prgm } 01▸LBL "TRY" 02 CLLCD 03 1 04 ENTER 05 "×" 06▸LBL 10 07 AGRAPH 08 GETKEY 09 R↓ ...
by whuyse
Wed Jan 30, 2019 7:57 am
Forum: Usage tips, tricks and problem reports
Topic: newbie and coding help needed
Replies: 6
Views: 438

Re: newbie and coding help needed

AGRAPH and PIXEL accept a complex matrix of coordinates as argument as well. Beware that complex arguments and real arguments have their order reversed. Complex arguments are (X,Y) with X the horizontal coordinate and Y the vertical (your program has X and Y reversed btw) Then, to add a coordinate t...
by whuyse
Tue Jan 29, 2019 11:35 am
Forum: Usage tips, tricks and problem reports
Topic: newbie and coding help needed
Replies: 6
Views: 438

Re: newbie and coding help needed

Unfortunately, it seems that pressing a menu button clears the LCD as well.. so you can: - create the menu grobs yourself and work with GETKEY (don't know if that will work) - save all 'written' pixel coordinates in a matrix and rewrite them each and every loop. - (kindly) ask Swissmicros to change ...
by whuyse
Wed Dec 12, 2018 10:42 am
Forum: DM42
Topic: Feature requests
Replies: 15
Views: 1331

Re: Feature requests

My feature request (also in view of the virtually unlimited program space) is to lift the limit on having only 8 return stack levels.
That is also unlikely to cause any existing program to fail ;-)
Local variables would also be nice..

Cheers, Werner
by whuyse
Sat Nov 17, 2018 1:41 pm
Forum: Usage tips, tricks and problem reports
Topic: All calculation are equal but complex number are more equal...?
Replies: 11
Views: 878

Re: All calculation are equal but complex number are more equal...?

Walter wrote:
Sat Nov 17, 2018 12:32 pm
Not all. 1/x inverts the matrix. Consistency, you're called HP. ;)
No, it doesn’t ;-)
INVRT inverts a matrix, 1/x inverts each element.

Cheers, Werner
by whuyse
Sat Nov 17, 2018 9:24 am
Forum: Usage tips, tricks and problem reports
Topic: All calculation are equal but complex number are more equal...?
Replies: 11
Views: 878

Re: All calculation are equal but complex number are more equal...?

X^2 will square all the matrix elements, it will not square the matrix.
Only (all?) single-argument functions will work on all elements of the matrix.
Eg. MOD doesn't work, but SIN, IP, SIGN, XTOA etc. work.

Cheers, Werner
by whuyse
Thu Nov 08, 2018 1:43 am
Forum: DM42
Topic: Solve Systems of Equation with Complex Coefficients
Replies: 5
Views: 649

Re: Solve Systems of Equation with Complex Coefficients

Logan wrote:
Wed Nov 07, 2018 5:30 pm
Inverse A, then multiply it by B (A^-1 in y-register, B in X).
With B in Y and A in X, divide. This is both faster and more accurate than inverting A, then multiplying by B.

Cheers, Werner
by whuyse
Mon Oct 15, 2018 12:45 pm
Forum: Software Library
Topic: Line drawing support
Replies: 31
Views: 5533

Re: Line drawing support

Hi, this is my version of LINE. differences with yours: it doesn't round the inputs. PIXEL rounds the inputs anyway. speed-optimized inner loop, using "x" AGRAPH instead of PIXEL, so no need to test negative input. It is independent of the CRES/RRES setting (yours isn't, you perform a SQRT on a nega...