Fortran中开根号函数QRST的调用
来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/16 01:57:57
Fortran中开根号函数QRST的调用
我的程序:
program examimplicit nonereal vreal sqrtopen(2,file='F:\6.txt',status='replace') v=sqrt(4)write(2,*) vend
结果出错提示:
Error:This name does not have a type,and must have an explicit type.[SQRT]
Warning:Arguments' data types are incompatible with intrinsic procedure,assume EXTERNAL.[SQRT]
请问怎么调用啊?
我的程序:
program examimplicit nonereal vreal sqrtopen(2,file='F:\6.txt',status='replace') v=sqrt(4)write(2,*) vend
结果出错提示:
Error:This name does not have a type,and must have an explicit type.[SQRT]
Warning:Arguments' data types are incompatible with intrinsic procedure,assume EXTERNAL.[SQRT]
请问怎么调用啊?
应该这样
program exam
real v
open(2,file='6.txt',status='unknown')
v=sqrt(4.0)
write(2,*) v
close(2)
call system('c:\windows\notepad.exe 6.txt')
end
既然V是real
sqrt(4.0)中间应该是4.0
program exam
real v
open(2,file='6.txt',status='unknown')
v=sqrt(4.0)
write(2,*) v
close(2)
call system('c:\windows\notepad.exe 6.txt')
end
既然V是real
sqrt(4.0)中间应该是4.0
fortran语言中 开根号怎么表示?
Fortran中 kind是什么函数?
fortran中有直接解线性方程组的内部函数吗?
matlab中函数调用问题
matlab中调用函数问题
如下函数调用语句 func(rec1,rec2+rec3,(rec4,rec5); 该函数调用语句中,含有的实参个数是(
fortran 中,
fortran 中有类似于 matlab 中feval计算表达式的函数么?
Fortran里几个有用的函数
matlab函数调用的问题
谁会用C语言 写“定义函数返回两个数中较大的数,在主函数中调用并输出.编写主函数调用该函数”.
请问C语言中函数定义,函数声明和函数调用的区别?