Skip to content

Commit 30a4262

Browse files
authored
close #328; issue with E and lamdify (#329)
* lambdify with E, close issue #328 * add test, bump version
1 parent 2dc99a8 commit 30a4262

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SymPy"
22
uuid = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
3-
version = "1.0.14"
3+
version = "1.0.15"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

grep

Whitespace-only changes.

src/lambdify.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ val_map = Dict(
99
"NegativeOne" => :(-1),
1010
"Half" => :(1/2),
1111
"Pi" => :pi,
12-
"Exp1" => :e,
12+
"Exp1" => :,
1313
"Infinity" => :Inf,
1414
"NegativeInfinity" => :(-Inf),
1515
"ComplexInfinity" => :Inf, # error?

test/tests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,12 @@ end
591591
@test eltype(A*ones(2,2)) == Sym
592592
@test eltype(A*Diagonal([1,1])) == Sym
593593
@test_broken eltype(A * I(2)) == Sym
594+
595+
## Issue 328 with E -> e
596+
@vars x
597+
ex = 3 * sympy.E * x
598+
fn = lambdify(ex)
599+
@test fn(1) 3*exp(1) * 1
594600
end
595601

596602
@testset "generic programming, issue 223" begin

0 commit comments

Comments
 (0)