Forgot password
 Register account
View 374|Reply 1

SageMathCell

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2022-2-18 20:39 |Read mode
Last edited by hbghlyj 2023-6-5 21:45以"生成随机素数"为例.(在下面的代码块中可以输入代码并运行.)
需要先执行上面的代码生成素数a再用下面的代码判定素数.(如果未执行上面当然就会报错a未定义.)
如果需要像上面这种在页面中嵌入多个代码块并内联(比如第1个的运行结果中的变量直接为第2个所用)需要在配置中加上linked: true

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2022-2-18 21:18
Last edited by hbghlyj 2022-8-5 03:47除了Sage之外还支持HTML,Octave,Singular等语言,需要在配置文件中修改(默认是只有sage,和一楼的languages: ['sage']效果一样).比如下面是languages: sagecell.allLanguages(所有语言)

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:49 GMT+8

Powered by Discuz!

Processed in 0.014922 seconds, 36 queries