Source language: Translate to:

Math

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Math

Postby Alex » Wed Nov 29, 2006 9:40 am

Hi,

I want to execute the Pythagore Theorem, but it says error, look :

Math "Sqrt([CA]Sqr)-Sqrt([BC]Sqr)" "-1" "[TPMesure1]"

Thanks

Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Postby Gaev » Wed Nov 29, 2006 10:12 am

Alex:

Assuming that [CA] is the diagonal side, [BC] is one of the non-diagonal side ... and [TPMesure1] is the other non-diagonal side ... in which case ...

- [BC] squared plus [TPMesure1] squared = [CA] squared
- so [TPMesure1] squared = [CA] squared minus [BC] squared
- hence, [TPMesure1] = SquareRoot of ... ([CA] squared minus [BC] squared)

Try ...
Code: Select all
Math "Sqrt(Sqr([CA])-Sqr([BC]))" "-1" "[TPMesure1]"
... or just ...
Code: Select all
Math "Sqrt(([CA]*[CA])-([BC]*[BC]))" "-1" "[TPMesure1]"
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Alex » Wed Nov 29, 2006 11:14 am

Thank you


Alex
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron