【鼎革‧革鼎】︰ Raspbian Stretch 《三‧丙》

《花非花》白居易

花非花,霧非霧,
夜半來,天明去,
來如春夢無多時,
去似朝雲無覓處。

香山居士這首詩別出心裁,令人想入非非。莫非

美人花,花非花,似花花解語。
彩雲霧,霧非霧,比霧霧生霞。
春夢恐醒,韶光將逝,如電亦如霧。
朝雲易散,彩霞難留,來去無覓處。

。引人『悟』悟吾心乎??感嘆人生幾何耶!!

幾人曾賞霧中花?
飄香方知花是花!
春夢朝雲花中霧!
何時才曉霧是霧?

─── 《光的世界︰派生科學計算五

 

雖然也曾盛讚特寫數聖 SageMath ,為何於程式範例中卻鮮用之呢 ?

特此介紹『派生』軟件中,有一自稱『 Sage 』的『 SageMath

sage_logo_new_l_hc_edgy-nq8

SageMath is a free open-source mathematics software system licensed under the GPL. It builds on top of many existing open-source packages: NumPy, SciPy, matplotlib, Sympy, Maxima, GAP, FLINT, R and many more.
Access their combined power through a common, Python-based language or directly via interfaces or wrappers. → Tour, Tutorial, Documentation
Mission: Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab.

350px-Sage_-_plot
Sage Notebook 數聖筆記本

350px-SAGE_equation_solve

何其不凡的抱負,這個開源的『數聖』計畫,始於二零零五年二月二十四日,果然是『十年磨一劍』!,當真『銳利』得很 !!

』缺了『』,大概『沒的活』了!『科學』── 不管說︰自然的』與『社會的』以及『科技的』和『人文的── 要是少了『數學』,可能『沒啥用』的吧!!

務本』之『君子』請閱讀

樹莓派‧數聖》網頁

進行『下載』且『安裝』。

※ 須注意,下載檔案很大,近乎 1 G ,解壓後更大,有個 3-4 G ,先衡量好目下使用『樹莓派』之『容量』的『承受力』。

從哪開始?

SageMath Feature Tour

Help and Support

─── 摘自《?□ Sage ○ 聖!

 

主要因為它目前尚未支持派生三 Python3︰

Currently, no (February 2017). Work in progress aims to allow this in the not-so-far future. Until this task is completed, SageMath will continue to use Python 2.x.

See trac ticket #15530 for tracking the current progress.

 

無法用萬國碼 Unicode 命名物件也。其次派生的程式庫種類繁多,考慮應用時安裝之方便性以及版本的相容性,不得已只好割愛耳!其實一般科學計算 IPython 終端機,加上 NumPy 、 SymPy 、 SciPy 、 … 足以。有興趣的讀者可以參考《光的世界︰派生科學計算一》系列文本有個開始◎
 

隨喜工具界面

pi@raspberrypi:~ $ ipython3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from sympy import *

In [2]: init_printing()

In [3]: x,a,b = symbols('x,a,b')

In [4]: 方程式 = x**2 - 4*x + 3

In [5]: 方程式
Out[5]: 
 2          
x  - 4⋅x + 3

In [6]: factor(方程式)
Out[6]: (x - 3)⋅(x - 1)

In [7]: 方程式.subs(x,3)
Out[7]: 0

In [8]: