File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " SymPy"
2
2
uuid = " 24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
3
- version = " 1.0.16"
3
+ version = " 1.0.17"
4
+
4
5
5
6
[deps ]
6
7
LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Original file line number Diff line number Diff line change 2
2
3
3
4
4
Base. abs (x:: SymbolicObject ) = sympy. Abs (x)
5
- Base. abs2 (x:: SymbolicObject ) = abs (x)^ 2
5
+ Base. abs2 (x:: SymbolicObject ) = x * conj (x)
6
6
Base. max (x:: Sym , a) = sympy. Max (x, a)
7
7
Base. min (x:: Sym , a) = sympy. Min (x, a)
8
8
Original file line number Diff line number Diff line change 597
597
ex = 3 * sympy. E * x
598
598
fn = lambdify (ex)
599
599
@test fn (1 ) ≈ 3 * exp (1 ) * 1
600
+
601
+ # # Issue 332 with `abs2`
602
+ @vars x real= true
603
+ @test abs2 (x) == x* x
604
+ @vars x
605
+ @test abs2 (x) == x* conj (x)
606
+
600
607
end
601
608
602
609
@testset " generic programming, issue 223" begin
You can’t perform that action at this time.
0 commit comments