PB Math-fans, Please have a look at the following formula derived from FORTRAN 90:
v = sqrt ( ( ( u - 1.0E+00 ) * x1 - u * x2 + x3 )**2 + ( ( u - 1.0E+00 ) * y1 - u * y2 + y3 )**2 ) / unit
I have simply a syntax question only to the expression: (u - 1.0E+00)
How is this simple Fortran syntax to be converted to PB?
I did it this way and hope it is correct:
v = Sqr(((u - 1.0E+00) * dp1.x - u * dp2.x + dpOn.x)^2 + ((u - 1.0E+00) * dp1.y - u * dp2.y + dpOn.y)^2 ) / unit
v = sqrt ( ( ( u - 1.0E+00 ) * x1 - u * x2 + x3 )**2 + ( ( u - 1.0E+00 ) * y1 - u * y2 + y3 )**2 ) / unit
I have simply a syntax question only to the expression: (u - 1.0E+00)
How is this simple Fortran syntax to be converted to PB?
I did it this way and hope it is correct:
v = Sqr(((u - 1.0E+00) * dp1.x - u * dp2.x + dpOn.x)^2 + ((u - 1.0E+00) * dp1.y - u * dp2.y + dpOn.y)^2 ) / unit
Comment