Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- print(' x sin(x) cos(x)')
- print('--------------------------------------')
- for i in range(0, 11):
- x = 0.0 + float(i)/10
- print(' ' + '{0:.4f}'.format(x) + ' ' + '{0:.4f}'.format(math.sin(x)) + ' ' + '{0:.4f}'.format(math.cos(x), 4))
- print('--------------------------------------')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement