-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a tiny library of functions (#11)
* Move functions into their own file. * A hack to extract the result from Maxima's verbose output.
- Loading branch information
1 parent
34480fd
commit 58b9fdb
Showing
4 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
load("euler.mac")$ | ||
|
||
defstruct(graph(V, E))$ | ||
|
||
eulersberg: new(graph({A,B,C,D,E,F}, {[a,{E,F}], [b,{B,F}], [c,{B,F}], [d,{A,F}], [e,{A,F}], [f,{C,F}], [g,{A,C}], [h,{A,C}], [i,{C,D}], [k,{A,D}], [l,{D,E}], [m,{A,E}], [n,{A,E}], [o,{B,E}], [p,{A,B}]}))$ | ||
|
||
s: "EaFbBcFdAeFfCgAhCiDkAmEnApBoElD"$ | ||
|
||
journey: map(eval_string, charlist(s))$ | ||
|
||
print(concat(supcase("result: "), string(euler_path(eulersberg, journey))))$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
showtime:all; |