Differences between revisions 5 and 6
Revision 5 as of 2008-11-15 14:01:26
Size: 1642
Editor: localhost
Comment: converted to 1.6 markup
Revision 6 as of 2009-09-20 19:35:26
Size: 1618
Editor: techtonik
Comment: not a category
Deletions are marked like this. Additions are marked like this.
Line 83: Line 83:
----
CategoryCategory

Version 1.0 of Ceiling Calculator

{{{from math import ceil

print "Ceiling Calculator - Version 1.0" print print "What is the value of x?" x = float(raw_input()) print print "The ceiling of x is:" print ceil(x) print print "Press Enter to quit." raw_input()}}}

Version 1.0 of Absolute Value Calculator

{{{from math import fabs

print "Absolute Value - Version 1.0" print print "What is the value of x?" x = float(raw_input()) print print "The absolute value of x is:" print fabs(x) print print "Press Enter to quit." raw_input()}}}

Version 1.0 of Floor Calculator

{{{from math import floor

print "Floor Calculator - Version 1.0" print print "What is the value of x?" x = float(raw_input()) print print "The floor of x is:" print floor(x) print print "Press Enter to quit." raw_input()}}}

Version 1.0 of fmod Calculator

{{{from math import fmod

print "fmod Calculator - Version 1.0" print print "What is the value of x?" x = float(raw_input()) print print "What is the value of y?" y = float(raw_input()) print print "The result of fmod(x, y) is:" print fmod(x, y) print print "Press Enter to quit." raw_input()}}}

Version 1.0 of Mantissa and Exponent Calculator

{{{from math import frexp

print "Mantissa and Exponent Calculator - Version 1.0" print print "What is the value of x?" x = float(raw_input()) y = frexp(x) print print "The mantissa of x is:" print y[1] print print "The exponent of x is:" print y[2] print print "Press enter to quit." raw_input()}}}

LeeEdwin/MathTools (last edited 2009-09-20 19:35:26 by techtonik)

Unable to edit the page? See the FrontPage for instructions.