Skip to content

Commit

Permalink
Minor update to show expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
goedman committed Nov 22, 2018
1 parent 7043369 commit 28fed51
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test_symata.jl
Expand Up @@ -19,11 +19,16 @@ println()
q = @sym ToString(f1(x));
q |> display
println()
u = @sym ToString(f2(x));
u = lowercase(@sym ToString(f2(x)));
u |> display
println()

@eval f1(x) = $(Meta.parse(q))
Meta.parse(q) |> display
println()
Meta.parse(u) |> display
println()

@eval f1(x) = $(Meta.parse(q)) # This will also take care conversion to lowercase
@eval f2(x) = $(Meta.parse(u))

f1(Complex(4.5)) |> display
Expand Down

0 comments on commit 28fed51

Please sign in to comment.