12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import java.util.*;
- import java.util.Scanner;
- public class CoreAl
- {
-
-
-
- public double square(double number)
- {
-
- double sq=Math.pow(number,2);
- return sq;
-
-
- }
- //return square;
-
-
-
- public double squareroot(double number)
- {
-
- double sqroot=Math.sqrt(number);
- return sqroot;
- }
-
-
-
- public double exponent(double base,double power)
- {
-
- double exp=Math.pow(base,power);
- return exp;
- }
-
-
-
-
- public double inverse(double number)
- {
-
- return (1/number);
- }
-
- public double invertsign(double number)
- {
-
- return (number*-1);
- }
-
- }
-
- /*Catch(Exception e)
- {
- System.out.println("An error has occured");
- }*/
-
|