Share testMathlib.py

image

# Testing share from the sl4a editor
import android, math  droid = android.Android()  pi = 3.14159 print ‘  pi: ‘, pi print ‘Sine: ‘, math.sin(-3.1) print ‘Sine: ‘, math.sin(3.1) print ‘Sine: ‘, math.sin(pi) print ‘Sine: ‘, math.sin(pi / 2) print ‘Sine: ‘, math.sin(3 * pi / 2)

Advertisement

Tags: ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.