Weird Math
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27534
interpreted = N
texte = No, Kelly LeBrock is not coding WebCatalog templates, but I'm seeing my own weird science...I was starting to the compile a list of operators and math functions and was checking out some sample code, only to experience some weird things with my MATH context. It seems that my math functions are evaluating to radians instead of to degrees and are requiring radians for input rather than degrees. For example, [math]acos(.6)[/math] evaluates to 0.927295218001612 which if multiplied by 180/3.14159 you get the value of 53.13 that's in the manual. As another example, [math]cos(45)[/math] evaluates to 0.52532198881773 instead of 0.70 as the manual states, whereas [math]cos(45*3.14159/180)[/math] evaluates to 0.7. Finally, some expressions aren't evaluating at all such as pi.Please tell me that there's a setting somewhere that I'm missing.Thanks,BrianBrian WachterStoneport Technologies, LLC(207) 772-3826-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
No, Kelly LeBrock is not coding WebCatalog templates, but I'm seeing my own weird science...I was starting to the compile a list of operators and math functions and was checking out some sample code, only to experience some weird things with my MATH context. It seems that my math functions are evaluating to radians instead of to degrees and are requiring radians for input rather than degrees. For example, [math]acos(.6)[/math] evaluates to 0.927295218001612 which if multiplied by 180/3.14159 you get the value of 53.13 that's in the manual. As another example, [math]cos(45)[/math] evaluates to 0.52532198881773 instead of 0.70 as the manual states, whereas [math]cos(45*3.14159/180)[/math] evaluates to 0.7. Finally, some expressions aren't evaluating at all such as pi.Please tell me that there's a setting somewhere that I'm missing.Thanks,BrianBrian WachterStoneport Technologies, LLC(207) 772-3826-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Brian Wachter
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
can WC render sites out? (1997)
Where is f2? (1997)
Here we go again... (2006)
WebCatalog can't find database (1997)
b12 cannot limit records returned and more. (1997)
Quit revisited (1997)
Robots fill event log (1997)
form data submission gets truncated (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Serving images from databases (1998)
Re:WebCatalog/WebMerchant III (1998)
SetMIMEHeader Behaviour (2000)
ShowIF Question (2000)
Date math (1997)
Summing fields (1997)
WebCatalog for guestbook ? (1997)
Problems getting parameters passed into email. (1997)
WebCat2b15MacPlugin - [protect] (1997)
ShowNext example for GeneralStore (1997)
Make sure I understand this??? (1997)