欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Mathematica常用命令

发布时间:2025/3/15 编程问答 42 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Mathematica常用命令 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

文件操作

Mathematica的一行命令读取二进制bin文件:

BinaryReadList["file","type"]

其中,file为bin文件的路径地址;type为bin文件的存储格式。

type的值有:

  • "Byte" 8位无符号整数
  • "Character8" 8位字符
  • "Character16" 16位字符
  • "Complex64" IEEE 単精度复数
  • "Complex128" IEEE 双精度复数
  • "Complex256" IEEE 四精度复数
  • "Integer8" 8位符号整数
  • "Integer16" 16位符号整数
  • "Integer32" 32位符号整数
  • "Integer64" 64位符号整数
  • "Integer128" 128位符号整数
  • "Real32" IEEE 単精度实数
  • "Real64" IEEE 双精度实数
  • "Real128" IEEE 四精度实数
  • "TerminatedString" 由8位字符组成的以null结束的字符串
  • "UnsignedInteger8" 8位无符号整数
  • "UnsignedInteger16" 16位无符号整数
  • "UnsignedInteger32" 32位无符号整数
  • "UnsignedInteger64" 64位无符号整数
  • "UnsignedInteger128" 128位无符号整数

数据处理

Rationalize

  • 小数转换为分数
  • Rationalize[0.1] ->1/10

Series

  • 公式展开
  • Series[1.0/Sqrt[1 - x^2], {x, 0, 10}]->

总结

以上是生活随笔为你收集整理的Mathematica常用命令的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。