hi. what's a difference between math.pow() and math.exp()? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

hi. what's a difference between math.pow() and math.exp()?

16th Jul 2016, 6:13 PM
Sergej
2 Answers
+ 1
hai.. the math.pow in c# can be use for calculating power for example int []arr={4,1,3}; DOUBLE Y=math.pow (arr [0],2];//which calculate the arr [0]=4^2=16
18th Jul 2016, 5:15 AM
Vijoy Techy
Vijoy Techy - avatar
0
Math.Pow execution is twice faster :)
18th Jul 2016, 10:15 AM
Maksym Malishchuk
Maksym Malishchuk - avatar