Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cos trigonometric function

// C++ program to illustrate 'cos trigonometric function'
  
#include <iostream>
#include <math.h>
using namespace std;
  
int main() {

    double x = 2.3;
  
    cout << "Cosine value of x = 2.3 is: "
         << cos(x) << endl;
  
    return 0;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #trigonometric #function
ADD COMMENT
Topic
Name
4+2 =