avatar
问一个FORTRAn的问题!# Computation - 科学计算
l*t
1
偶用一个函数
sqrtl(double(p))
link的时候出现两个错误
srqtl , double都错了
问怎么改,
thanks!
avatar
t*n
2
What fortran are you using? I don't think standard fortran has these two
functions. If you are trying to 1) convert p to a double precision; and
2) calculate the square root of p then you should use
sqrt(dfloat(p))

【在 l**t 的大作中提到】
: 偶用一个函数
: sqrtl(double(p))
: link的时候出现两个错误
: srqtl , double都错了
: 问怎么改,
: thanks!

avatar
l*t
3
偶用的编译器是visual fortran 5.0
除了要把p改成double之外,偶要sqrt之后也是
double,不必sqrtl了马?
thanks

【在 t****n 的大作中提到】
: What fortran are you using? I don't think standard fortran has these two
: functions. If you are trying to 1) convert p to a double precision; and
: 2) calculate the square root of p then you should use
: sqrt(dfloat(p))

avatar
s*l
4
Dsqrt(Dble(p))

【在 l**t 的大作中提到】
: 偶用的编译器是visual fortran 5.0
: 除了要把p改成double之外,偶要sqrt之后也是
: double,不必sqrtl了马?
: thanks

avatar
s*n
5
Ft.
I am still using Powerstation 4.0

【在 l**t 的大作中提到】
: 偶用的编译器是visual fortran 5.0
: 除了要把p改成double之外,偶要sqrt之后也是
: double,不必sqrtl了马?
: thanks

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。