fortran中如何开平方
2个回答
展开全部
可以用fortran自带的内部函数“sqrt()”
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
SQRT
Elemental Intrinsic Function (Generic): Derives the square root of its argument.
Syntax
result = SQRT (x)
x
(Input) must be of type real or complex. If x is type real, its value must be greater than or equal to zero.
Results:
The result type is the same as x. The result has a value equal to the square root of x. A result of type complex is the principal value, with the real part greater than or equal to zero. When the real part of the result is zero, the imaginary part is greater than or equal to zero.
Elemental Intrinsic Function (Generic): Derives the square root of its argument.
Syntax
result = SQRT (x)
x
(Input) must be of type real or complex. If x is type real, its value must be greater than or equal to zero.
Results:
The result type is the same as x. The result has a value equal to the square root of x. A result of type complex is the principal value, with the real part greater than or equal to zero. When the real part of the result is zero, the imaginary part is greater than or equal to zero.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询