Closed ahmedibrahim6 closed 6 years ago
trig functions: "sin , cos , tan , cosec , sec , cot , sinh , cosh , tanh , sech , csch , coth "
trigFns.txt https://github.com/ahmedibrahim6/AsuMathLabG03/files/1503445/trigFnsHeader.txt
@ziadhesham
unexpected output for cos and tan functions
test :
CMatrix x("[3.5 -pi;0.0 pi]") ;
cout<<x.sinn()<<endl<<endl;
cout<<x.coss()<<endl<<endl;
cout<<x.tann()<<endl<<endl;
output :
-0.350783 0.000000
0.000000 0.000000
-0.936457 1.000000
1.000000 1.000000
inf inf
inf inf
expected output :
ans =
-0.35078 -0.00000 0.00000 0.00000
ans =
-0.93646 -1.00000 1.00000 -1.00000
ans =
0.37459 0.00000 0.00000 -0.00000
The functions supported :
Support Trigonometric, Logarithmic , Roots functions .
Useful link : in this link the priority is to support exp , log and log10 functions