ahmedibrahim6 / AsuMathLabG03

C++ project describes MATLAB software
0 stars 1 forks source link

Some mathematical functions (Trigonometric, Logarithmic , Roots) #3

Closed ahmedibrahim6 closed 6 years ago

ahmedibrahim6 commented 6 years ago

Support Trigonometric, Logarithmic , Roots functions .

Useful link : in this link the priority is to support exp , log and log10 functions

iSalma commented 6 years ago

task#3-log-root-exp.txt

ziadhesham commented 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

Raheeqalaa96 commented 6 years ago

log log10 sqrt exp.txt

https://github.com/ahmedibrahim6/AsuMathLabG03/files/1504195/main.log.log10.sqrt.exp.txt

https://github.com/ahmedibrahim6/AsuMathLabG03/files/1504196/output.of.log.log10.exp.sqrt.txt

iSalma commented 6 years ago

complex.txt

ahmedibrahim6 commented 6 years ago

@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

ziadhesham commented 6 years ago

The functions supported :