Skip to content

Commit

Permalink
Partial workaround for isequal on vpa
Browse files Browse the repository at this point in the history
Just get tests passing on recent SymPy, not really a fix yet (?).  See
Issue #1285.
  • Loading branch information
cbm755 committed Jan 28, 2024
1 parent 31f69f4 commit 645b491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/@sym/logspace.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (C) 2015, 2016, 2018 Colin B. Macdonald
%% Copyright (C) 2015, 2016, 2018, 2024 Colin B. Macdonald
%%
%% This file is part of OctSymPy.
%%
Expand Down Expand Up @@ -112,5 +112,5 @@
%! n = 32;
%! A = logspace(-vpa(1,n), 0, 3);
%! B = [10^(-vpa(1,n)) 10^(-vpa(sym(1)/2,n)) vpa(1,n)];
%! assert (isequal (A, B))
%! assert (all (A == B))
%! assert (max(abs(double(A) - logspace(-1, 0, 3))) < 1e-15)

0 comments on commit 645b491

Please sign in to comment.