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 :: arduino bleutooth module hc-05 with led 
Cpp :: top array data structure questions in inteviews 
Cpp :: how to find second smallest element in an array using single loop 
Cpp :: use textchanged qt cpp 
Cpp :: how to make c++ read strlen 
Cpp :: how does sorting array works in c++ 
Cpp :: right rotation of array in c++ by one element 
Cpp :: log base 10 c+_+ 
Cpp :: cap phat dong mang 2 chieu trong c++ 
Cpp :: const in c++ is same as globle in python 
Cpp :: practice problems for nested loops in c++ 
Cpp :: . Shell sort in c++ 
Cpp :: c++ Testing implementation details for automated assessment of sorting algorithms 
Cpp :: vowel and consonant program in c++ using if else 
Cpp :: C++ Multilevel Inheritance 
Cpp :: Operatore ternario c++ 
Cpp :: Create an algorithm to identify what is the next largest element on a stack (using stack/queue operations only) INPUT: [ 10, 3, 1, 14, 15, 5 ] OUTPUT: 10 - 14 3 - 14 1 - 14 14 - 15 15 - -1 5 - -1 
Cpp :: Fill 2-dimensional array with value 
Cpp :: c++ vector add scalar 
Cpp :: file is good in c++ 
Cpp :: servicenow cart api 
Cpp :: semi colon in argument list c++ 
Cpp :: SDL_BlitSurface 
Cpp :: print an array c++ 
Cpp :: c++ konsolenausgabe 
Cpp :: C++ (gcc 8.3) sample 
Cpp :: c++ asio read full socket data into buffer 
Cpp :: c++ ide online 
Cpp :: ue4 foreach loop c++ 
Cpp :: def minimulHeaviestSetA(arr,n) 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =