Search
 
SCRIPT & CODE EXAMPLE
 

CPP

sin trigonometric function

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

    double x = 2.3;
    cout << "Sine value of x = 2.3 is: "
         << sin(x) << endl;
  
    return 0;
}
Comment

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: 2d stl array 
Cpp :: Swap given nodes in a Doubly Linked List without modifying data 
Cpp :: get player pawn 
Cpp :: 2160. Minimum Sum of Four Digit Number After Splitting Digits leetcode solution in c++ 
Cpp :: construct string with repeat limit 
Cpp :: csv 
Cpp :: qt/c++ exception handler 
Cpp :: rotateArray 
Cpp :: object as a function argument and returning object 
Cpp :: The elements are store at contiguous memory locations in C++ 
Cpp :: c++ to c converter 
Cpp :: multiply two arbitrary integers a and b (a greater than b) 
Cpp :: lcm recursive program in c++ 
Cpp :: cuda atomic swap 
Cpp :: c++ cout int 
Cpp :: strip whitespace c++ 
Cpp :: if statement in c++ 
Cpp :: vector to char array c++ 
Cpp :: Arduino Counting without Millis 
Cpp :: cpp set time 
Cpp :: c++ generate random number upper and lower bound 
C :: how to remove button decoration 
C :: check dns server in linux 
C :: c program to find area of circle 
C :: close file in c 
C :: C program to display fibonacci serice 
C :: Call by reference to pass an array to the function in C- 
C :: va_list in c 
C :: get range of values in mongodb 
C :: for loop in c 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =