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 錦囊妙計
4.11 以模式作為資料檢索語言
|
173
若你想知道具
P1
庫存的供應商名稱,這需整合
S
INV
兩資料表的資訊,這可透過跨資
料表檢索達到,但 SQL 語法另外提供子檢索(subquery)的功能,這也可以透過規則式
實作,以下使用
MemberQ
指令實作 SQL
IN
語法。
中, 索,
normalization),每行能夠僅包含單元資料(atomic data)。然而 Mathematica 並非關
聯式資料庫,因此資料可能以任意巢狀結構出現,但這不會是個難題,因為模式比 SQL
語法有彈性多了;儘管如此,在擷取資訊之前,把資料以表格方式儲存還是簡單多了。
以下介紹更貼近 Mathematica 的範例。
6 始,Mathematica 使 用,
GraphData
PolyhedronData
便是其中兩種,這兩種資料來源的關聯在於每個多面體具有一個對應
的圖,在
PolyhedronData
中將兩資料庫連結的屬性為
SkeletonGraph
,而在資料庫領域
中,
SkeletonGraph
稱為
GraphData
外部索引鍵
foreign key
),這可讓我們檢視多面
體與其對應圖的關係。在本例中,考慮所有同時為 Eulerian Hamiltonian 的圖及它們
所對應的阿基米德多面體(Archimedean),這是
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