function - Shell 参数作为 Fortran 的参数
问题描述
我想用下面的shell线轻松计算一个数字的平方
./exe 参数
这是fortran代码
PROGRAM
REAL*8 :: x,fx
fx=x**2
print*,'The square of ',x,' is ',fx
END PROGRAM
我想 x 作为参数,我可以使用哪一行?
解决方案
推荐阅读
- r - 如果另一列中的值在 R 中重复,如何替换列中的不同值?
- jasper-reports - 当我做 Jasper 报告时,我的服务器中的字符错误
- react-native - 无法加载脚本。确保您正在运行 Metro 服务器反应本机
- sparql - 如何通过 SPARQL 仅知道 Protégé 中的个人和类名来检索数据属性值?
- typescript - NextJS:在服务器上运行 Typescript 脚本
- mvvm - 最佳实践:当流中存在不同错误类型时,Combine Framework 中的错误管理
- python - 熊猫使用合并单元格创建字典
- python - Python多处理内存分配太高
- spring-webflux - 如何为使用返回 Mono 的服务类编写组件测试?
- flutter - 提供者仅在经过身份验证后