Publisher review:Mathop header file is meant to help out in simple mathematical operations that might be involved in your programs. This header file is meant to help out in simple mathematical operations that might be involved in your programs. You will have to copy it to the Include directory of your compiler to be able to use it.Functions:
- 1) The function prime(n) will give an output of one if the number n is prime and zero if n is not.
- 2) The function GCD(x,y) will give the greatest common denominator of x and y.
- 3) The function swap(x,y) will switch the values stored in variables x and y.
- 4) The functions qroot1(a,b,c) and qroot2(a,b,c) will return the value of the roots of the quadratic equation ax² by c provided the inputs are the co-efficients a, b, c.
Mathop is a JavaScript script for Mathematics scripts design by Apurva Mehta.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris