Skip to content

Commit b9fa37e

Browse files
authored
Merge pull request #309 from abhro/patch-1
2 parents c4702c2 + ec071fa commit b9fa37e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/src/basicUsage.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ The `@vars` macro can also be used to define collections of variables and symbol
2323
The `symbols` constructor can be used as well, it takes a symbol or string and returns a symbolic variable with the expected name. A string with spaces is split to allow the specification of multiple variables.
2424

2525
```@example symengine
26-
a=symbols(:a); b=symbols(:b)
26+
a = symbols(:a)
27+
b = symbols(:b)
28+
nothing # hide
2729
```
2830

2931
```@example symengine
@@ -145,6 +147,10 @@ A = [im x; 2im x^2]
145147
transpose(A)
146148
```
147149

150+
```@example symengine
151+
A'
152+
```
153+
148154
## Symbolic operations
149155

150156
### `as_numer_denom`, `coeff`
@@ -183,10 +189,11 @@ The `expand` function is much more performant than that in `Symbolics` -- this f
183189

184190
```@example symengine
185191
function expand_test(a,b,c)
186-
x = expand(((a+b+c+1)^20));
187-
y = expand(((a+b+c+1)^15));
192+
x = expand(((a+b+c+1)^20))
193+
y = expand(((a+b+c+1)^15))
188194
z = expand(x*y)
189195
end
196+
nothing # hide
190197
```
191198

192199

@@ -266,6 +273,7 @@ function diff_test(D, x)
266273
end
267274
expr
268275
end
276+
nothing # hide
269277
```
270278

271279

@@ -380,6 +388,7 @@ function replace_head(ex, u, v)
380388
λ = op == u ? v : op
381389
ex = maketerm(Basic, λ, args′, nothing)
382390
end
391+
nothing # hide
383392
```
384393

385394
```@example symengine

0 commit comments

Comments
 (0)