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 Wachter Stoneport 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:

    
  1. Re: Weird Math (WebDNA Support 2000)
  2. Re: Weird Math (Brian Wachter 2000)
  3. Re: Weird Math (WebDNA Support 2000)
  4. Re: Weird Math (Brian Wachter 2000)
  5. Re: Weird Math (WebDNA Support 2000)
  6. Weird Math (Brian Wachter 2000)
  7. Re: Weird Math and SV Bad News (Grant Hulbert 1997)
  8. Re: Weird Math and SV Bad News (bob 1997)
  9. Re: Weird Math and SV (bob 1997)
  10. Re: Weird Math and SV (Bob Minor 1997)
  11. Re: Weird Math and SV (Grant Hulbert 1997)
  12. Re: Weird Math and SV (Bob Minor 1997)
  13. Re: Weird Math and SV (Grant Hulbert 1997)
  14. Re: Weird Math and SV (bob 1997)
  15. Re: Weird Math and SV (Grant Hulbert 1997)
  16. Weird Math and SV (bob 1997)
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 Wachter Stoneport 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)