Skip to content

Commit

Permalink
Add a laplace transform test
Browse files Browse the repository at this point in the history
It might fail on earlier SymPy: we'll tighten that up later after CI if
so.
  • Loading branch information
cbm755 committed May 13, 2024
1 parent d082fd2 commit 9d80a78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: symbolic
Version: 3.1.1+
Date: 2023-03-20+
Version: 3.2.0
Date: 2023-01-29
Author: Colin B. Macdonald <[email protected]>
Maintainer: Colin B. Macdonald <[email protected]>
Title: Octave Symbolic Package using SymPy
Expand Down
8 changes: 7 additions & 1 deletion inst/@sym/laplace.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% Copyright (C) 2014-2016 Andrés Prieto
%% Copyright (C) 2015-2016, 2019 Colin Macdonald
%% Copyright (C) 2015-2016, 2019, 2024 Colin Macdonald
%%
%% This file is part of OctSymPy.
%%
Expand Down Expand Up @@ -214,3 +214,9 @@
%! % SymPy cannot evaluate? (Issue #170)
%! syms s f(t)
%! assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) ))

%!test
%! % https://github.com/gnu-octave/symbolic/issues/1295
%! syms t s
%! L = simplify (laplace (3*t*sin (4*t)));
%! assert (isAlways (L == 24*s / (s^2 + 16)^2))

0 comments on commit 9d80a78

Please sign in to comment.