Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
16
|
第一章
若想刪除零開頭的數字,可使用
DeleteCases
指令。
IntegerDigits[]
功能相反的指令為
FromDigits[]
以二進位運算
FromDigits[]
指令可將數字或羅馬數字等字串轉換為數值。
IntegerString[]
指令則用來將數字轉換為字串。以下使用
InputForm
指令顯示字串雙
引號。[Page-016]
ch01.indd 16 2014/4/2 下午 05:20:38
1.5 使用數值區間(Interval
|
17
1.5 使用數值區間(Interval
問題點
當數據包含量測誤差時,你想要評估運算結果的最大誤差範圍。
解決方案
除了使用數學方法外,Mathematica 提供了另一個途徑:直接以
數值區間
Interval
)進
行運算。數值區間代表一個不確定的數值,其上下限為明確的數值。
以上是一個簡單的範例,當物體的速度與質量的量測均包含誤差時,將影響動能的範
圍。
以此範例可了解誤差值如何於運算過程中放大。
運算區間的範圍大小
若只有質量項具量測誤差,則動能的誤差將降低。[Page-017]
ch01.indd 17 2014/4/2 下午 05:20:39
18
|
第一章
討論說明
數值區間的標頭為
Interval
Interval
內可包含數個區間串列
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106