
NEWTON, Ask A Scientist!
Name: jason p brechin
Status: N/A
Age: N/A
Location: N/A
Country: N/A
Date: N/A 

What is the standard way of writing algebraic functions (square roots, X to the power of, etc.) in standard DOS text?

Operating systems (like DOS) generally do not support any math functions more complex than +, -, *, and /. It's programming languages where you find powers, exponentiation, and roots; and the notation varies from language to language. FORTRAN uses "**" as in x=y**z; C uses a power function as in x=power(y,z). Roots are, of course, just fractional powers, but most languages use "SQRT" for square-root as in x=SQRT(y) because the square-root function is the most commonly used root. The particular case of "e" to a power is usually denoted x=EXP(y). In ASCII text you usually see "**" or "^" to denote powers, as in: x=y**z or x=y^z.


Click here to return to the Mathematics Archives



Educational Programs
Building 360
9700 S. Cass Ave.
Argonne, Illinois
60439-4845, USA
Update: June 2012
Weclome To Newton

Argonne National Laboratory