Skip to content

Commit 1751669

Browse files
author
Kasper Peeters
committed
Add sample for the sympy bridge.
1 parent 30867c1 commit 1751669

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

examples/sympy_bridge.cnb

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"cell_id": 17451107616265182499,
3+
"cells": [
4+
{
5+
"cell_id": 13606667274613717328,
6+
"cell_origin": "client",
7+
"cell_type": "input",
8+
"source": "from cdb.sympy.calculus import diff as D"
9+
},
10+
{
11+
"cell_id": 8968997047017838072,
12+
"cell_origin": "client",
13+
"cell_type": "input",
14+
"cells": [
15+
{
16+
"cell_id": 3283560223550061435,
17+
"cell_origin": "server",
18+
"cell_type": "latex_view",
19+
"cells": [
20+
{
21+
"cell_id": 11846820707357212391,
22+
"cell_origin": "server",
23+
"cell_type": "input_form",
24+
"source": "A_{a}(r) r"
25+
}
26+
],
27+
"source": "\\begin{dmath*}{}A_{a}\\left(r\\right) r\\end{dmath*}"
28+
},
29+
{
30+
"cell_id": 11895472410413471989,
31+
"cell_origin": "server",
32+
"cell_type": "latex_view",
33+
"cells": [
34+
{
35+
"cell_id": 9645811331927675225,
36+
"cell_origin": "server",
37+
"cell_type": "input_form",
38+
"source": "r \\partial_{r}(A_{a}(r)) + A_{a}(r)"
39+
}
40+
],
41+
"source": "\\begin{dmath*}{}r \\partial_{r}\\left(A_{a}\\left(r\\right)\\right)+A_{a}\\left(r\\right)\\end{dmath*}"
42+
}
43+
],
44+
"source": "ex := A_{a}(r) r;\nD( ex, $r$ );"
45+
},
46+
{
47+
"cell_id": 15489099887050608433,
48+
"cell_origin": "client",
49+
"cell_type": "input",
50+
"source": ""
51+
}
52+
],
53+
"description": "Cadabra JSON notebook format",
54+
"version": 1.0
55+
}

0 commit comments

Comments
 (0)