C++ supports many mathematical functions.All mathematical functions are defined in cmath library.
1)Square root
Sol) we have to use sqrt() function to find square root of a number .
C++ Code :
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cout << "Enter a number to find square root :
";
cin >> n;
cout << "Square root of " << n << "
is " << sqrt(n);
}

Output :

2) sin function
Sol) We have to use sin() function to find the sin value of a number.
C++ Code :
#include <iostream>
#include <cmath>
using namespace std;
int main(){
double n;
cout << "Enter a number to find sin value :
";
cin >> n;
cout << "sin value of " << n << " is
" << sin(n);
}

Output
3) ln
Sol) ln is nothing but natural logarithm.Using log() function we can calculate ln value.
C++ Code :
#include <iostream>
#include <cmath>
using namespace std;
int main(){
double n, ln_value;
n = 3.2;
ln_value = log(n);
cout << "log(" << n << ") = "
<< ln_value;
}

Output :

please up vote. Thank You.
Write c++ codes for the following mathmatical function : Square root Sin Ln
Simple C programming 1.Write a function in standard C library to obtain the square root of a int. 2.Write a function in standard C library to obtain the square root of a float.
.5LN 2= -LN | CSCX-COTX | +( LN ((SQUARE ROOT 2) +1|)). solve for X
please show all work so i can understand Write f(x)=ln((x^2 square root(x-4)/(x+1)^3)) in terms of lnx, ln(x+1), and ln(x-4). Then find f '(x).
Write a Haskell function integerSqrt that returns the integer square root of a positive integer n. (The integer square root is defined to be the largest integer whose square is less than or equal to n, i.e. the result of integerSqrt 15 is 3.). integerSqrt :: Integer -> Integer
Convert the code you developed to obtain square root value into a function that returns square root of a float value argument. The answer is of float type. This function can be named sqrtC and it has one (float) parameter going in and one value (the result) coming out. Write code in C language.
1, describe the domain of f(x,y) =ln(xy)/square root (x+y).
In Java, Write a program without using a build in square-root operator to compute square-root of a number that is known to have an integer square root
Write the codes and plot the graphs of the following sine waves in Matlab: a. Sin(2πft) b. 1/3Sin(2π(3f)t) c. 4/π[Sin(2πft) + 1/3Sin(2π(3f)t] d. 4[Sin(2πft) + 1/3Sin(2π(3f)t]
Write the equation of the square root function described. The function value, f(x), is an ordered pair,(x,f(x) , on a circle of radius 5 with its center at the origin of a coordinate system. (Hint: The equation for a circle of radius r and its center at (0,0) x^2+y^2=r^2) and what value of r is the known surface area of a sphere, given by the function S(r)=4πr^2, numerically equal to the known volume of the sphere given by the function...
c++ The length of the hypotenuse of a right-angled triangle is the square root of the sum of the squares of the other two sides. Write a function calcH that accept two doubles as function arguments and returns a double. Prompt the user for the length of base and the perpendicular side of the triangle. Use the pow and sqrt functions from cmath to perform the calculations