I’m looking for a math library (dictionary) for AppleScript. The built-in math functions are quite limited. I need to be able to do things like square-roots, sin, cos and tan, etc.
Thanks for any advice.
Les Lunce
UNIX is the answer, bc command has many math functions.
set TheNumber to 100
set TheLog to (do shell script ("echo 'l(" & (TheNumber as string) & ")' | bc -l")) as real
display dialog TheLog as string
do shell script "man -t bc | open -f -a /Applications/Preview.app"
Have Fun