Hannes
Guest
Mon Oct 04, 2010 11:39 am
Hi,
Are there any mathematical and physical constants predefined for the use
in OCEAN or Skill scripts?
Best regards
Hannes
Andrew Beckett
Guest
Mon Oct 04, 2010 12:38 pm
Hannes wrote, on 10/04/10 11:39:
Quote:
Hi,
Are there any mathematical and physical constants predefined for the use
in OCEAN or Skill scripts?
Best regards
Hannes
Hannes,
defMathConstants('math)
and then doing:
math.?
will show you the available constant names. For example:
math.PI_OVER_2
Note there are only maths constants and not physical constants. The argument to
defMathConstants can be whatever symbol you like - so you could do
defMathConstants('andrew) and then use andrew.E for example.
Regards,
Andrew.