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 錦囊妙計
第三章
資料結構
Well I live with snakes and lizards
And other things that go bump in the night
Ministry, “Everyday Is Halloween”
3.0 導論
高等數學豐富的抽象結構與形式使得數學超越了數字的領域,本章包含各種資料結構與
演算法相關的訣竅,以解決線性代數、張量運算、集合論、圖論及計算機科學等領域的
問題,通常這些資料結構均建構在串列(list)基礎上,以串列表示集合、向量、矩陣與
張量有很多好處,因為 Mathematica 提供許多通用的串列操作指令,可用來實現這些結
構的計算。串列、集合或張量在數學上是極為不同的抽象物件,而它們相異之處在於運
算方式而非資料儲存方式。[Page-85]
串列相關指令
Mathematica 列, 理,
Mathematica 進行高階運算是相當困難的,因此本章由串列基本處理開始。Mathematica
串列的建立方式是
List[elem1,elem2, ...,elemN]
,或者更常用的方式是以大括號建
立:
{elem1,elem2,...,elemN}
,元素型態沒有任何限制,可為各種型態的混合,如數
字、字串、指令、串列與其他 Mathematica 中的任意物件(如圖形與音訊等資料)。
了解串列的第一件事是如何建立它,最常用的
Table
指令負責串列建立,以下提
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