0

How to do maths in c++(advanced)?

For example trig functions,calc functions,

12th Dec 2019, 4:41 PM
Cordybear
1 Answer
0
include the math header file and you can then use functions like sin(), cos(), exp() etc. However keep in mind, that the trig. functions take input values in radians and not degrees. As for calc functions C does not perform symbolic maths. But maybe you can look up for some custom header files for them...
13th Dec 2019, 9:44 PM
Dewesh Chopra
Dewesh Chopra - avatar