
12
|
第一章
延伸資訊
關 於 精 確 度 與 準 確 度 的 深 入 討 論 請 參 考《
An Introduction to Programming with
Mathematica
》(Cambridge University Press 出 版 ) 的 第 8 章 以 及《
The Mathematica
Guidebook for Numerics
》(Springer 出版)。
1.3 以非十進位制表示數值
問題點
你需要以非十進位制方式進行運算。[Page-012]
解決方案
Mathematica 以
base^^digits
記號表示非十進位制的數值,其中
base
為底數,
digits
為位數。注意此記號法不允許空格。
二進位方式
十六進位方式
討論說明
除了 使 用 以上 方 式表 示 數值 之 外,你 可 以使 用
BaseForm[digits, base]
指令 將 數 值
於 進 位 系 統 間 轉 換, 使 用
^^