Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (xapproachesinfinity):

hey need some help with sqrt in fortran

OpenStudy (xapproachesinfinity):

i was doing z=sqrt(x.x+1) the equation I'm solving is \[y=\sqrt{x^2+1}\]

OpenStudy (xapproachesinfinity):

i mean z not y

OpenStudy (xapproachesinfinity):

@Abhisar

OpenStudy (xapproachesinfinity):

@ganeshie8 any fortran experience ^_^

OpenStudy (e.mccormick):

From https://www.nsc.liu.se/~boein/f77to90/a5.html The purpose of most of these functions is obvious. Note that they are all only defined for floating point numbers, and not for integers. You can therefore not calculate the square root of 4 as SQRT(4), but instead you can use NINT(SQRT(REAL(4))). Please also note that all complex functions return the principal value.

OpenStudy (xapproachesinfinity):

when specify the equation the compiler doesn't understand SQRT()

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!