Ubuntu 管理心得

搜尋此網誌

2021年1月31日 星期日

LyX + Mathematica souce code for math

  1. Open lyx in terminal (not by clicking lyx icon on desktop)
  2. Inside lyx, type an equation with Mathematica command, e.g. like this

  3. Alt-M Q to call Mathematica
  4. Thus, the inputs and the outputs of the Mathematica are shown in terminal as follows,

This way can be used to call Mathematica for debugging some math equations with Mathematica commands.

Also, it can be used for calling Octave. The followings show why the octave command inv is not working.

  1. Inside LyX, type this:
     
  2. Then call Octave by 編輯->數學->使用電腦代數系統->Octave
  3. Some error messages are shown in terminal:

  4. Look at the 2nd line. It shows that 'inv' in LyX is an variable rather than a Octave command so that the equation is wrong for calling Octave from LyX. 
  5. Only math. symbols provided by LyX can be used for Octave, For example, det for determinant, like the following 

 



沒有留言:

張貼留言

網誌存檔