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:
Why is deleting so slow? (2002)
Server crash (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
Quick Question About Sorting (1997)
Kill the webcat process (2000)
Why won't Netscape... (2000)
taxTotal, grandTotal (1997)
RE: type 2 errors with ssl server (1997)
Associative lookup style? + bit more (1997)
HELP WITH DATES (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
customer.db and forms (1999)
search for all (1998)
Authenticating users without dialog box (1997)
Error Log.db --however (1997)
Word search (1997)
RE: ANother SHOWIF problem (1997)
best way to check against old cart #s (1999)
[WebDNA] [OT] Kickstarter feedback please? (2015)
My web page only... (2003)