Skip to Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
18.10 客製化前端介面
|
735
若程式碼希望供
目前登入的使用者
於前端介面開啟時自動執行,請將程式碼置於以下
檔案(使用者層級):
當然,以上的結果將隨著作業系統而不同。
在這些初始檔中,你可以改變
$Epilog
系統變數,Mathematica 將於運算核心結束前執
行此變數。
討論說明
如果你經常使用某些自訂指令或常數,以上方式可確保每次 Mathematica 執行期都自動
定義它們。例如,每次執行 Mathematica 時,你總是需要用到
Essential`
套件,只要將
Needs["Essential`"]
程式碼加入使用者層級的
init.m
中即可。
請注意使用者層級的初始檔會執行在系統層級的初始檔之後,因此你可以善用此點,覆
蓋某些系統層級的定義。
延伸資訊
訣竅 18.10 介紹了
init.m
與
$Epilog
系統變數的使用範例。
關於
init.m
檔案的使用,詳見 Mathematica 教學文件
ref/file/init.m
。[Page-739]
18.10 客製化前端介面
問題點
在使用者執行表示式與前端介面進行處理之間,你想插入某些運算。
ch18.indd 735 2014/4/2 下午 04:52:13
736
|
第十八章
解決方案
藉 由 定 義
$PreRead
、
$Pre
、
$Post
、
$PrePrint ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mathematica Cookbook

Mathematica Cookbook

Sal Mangano
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9789863470106