Search:

Type: Posts; User: anon314

Search: Search took 0.17 seconds.

  1. Replies
    6
    Views
    992

    Re: calculate sin(x)

    If you click the image it will expand....


    import java.util.Scanner;

    public class cosx2 {

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  2. Replies
    6
    Views
    992

    Re: calculate sin(x)

    2453
  3. Replies
    6
    Views
    992

    Re: calculate sin(x)

    package cosx;

    import java.util.Scanner;

    public class cosx2 {

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);

    System.out.print("Enter the degree:...
  4. Thread: cos(x) program

    by anon314
    Replies
    1
    Views
    1,416

    cos(x) program

    I cannot figure out what I did wrong with this code to calculate cos(x), the function for the program is attached!

    package cosx;

    import java.util.Scanner;

    public class cosx {
    public static...
  5. Replies
    6
    Views
    992

    calculate sin(x)

    How can I transform this code to calculate the sin(x) in the method?

    public static double getCos(double degrees, int n) {
    double cos = 0;
    double numerator = 0;
    int denominator = 0;...
Results 1 to 5 of 5