Post Reply 
Free42 with IEEE 754-2008 decimal floating-point -- interested in a sneak preview?
03-16-2014, 03:06 PM (This post was last modified: 03-16-2014 03:13 PM by Thomas Okken.)
Post: #78
RE: Free42 with IEEE 754-2008 decimal floating-point - interested in a sneak preview?
(03-16-2014 02:38 PM)Werner Wrote:  Thanks, see my update in the previous post: it's 10^x that is the culprit.

OK, the Phloat::pow() fix will be in 1.5.2. Still a lot of work to do on the new state file format, so probably no sooner than next weekend.

(03-16-2014 02:38 PM)Werner Wrote:  As for SIN(45°) ^ = COS(45°), you left out one line of code wrt mine:

if x = 45 then x := SQRT(0.5);
else do

It didn't seem relevant to the angle reduction, but I had ignored the sin(45°) = cos(45°) issue. I'll add that in 1.5.2 as well.
By the way, where can I find out what formatting is supported on this forum? I thought it was strictly plain text here until I saw your [b] tags. :-)
(UPDATE: Duh, Help -> Posting -> MyCode. Never mind!)

(03-16-2014 02:38 PM)Werner Wrote:  That's all. (only looked at this part, not the GRADS, not the addition of complex numbers in polar mode etc..)

The grads code is identical, just s/45/50/g etc.
Polar mode doesn't affect anything; complex numbers are always rectangular internally, and converted to polar only for display. The polar-to-rectangular conversion does rely on your angle reduction; see generic_p2r() in core_helpers.cc.

Thanks very much for you help!

- Thomas
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Free42 with IEEE 754-2008 decimal floating-point - interested in a sneak preview? - Thomas Okken - 03-16-2014 03:06 PM



User(s) browsing this thread: 1 Guest(s)