Skip to content

Commit

Permalink
Upcoming SymPy versions pretty print polylog
Browse files Browse the repository at this point in the history
  • Loading branch information
cbm755 committed Jul 2, 2023
1 parent f173cd9 commit 15b68dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions inst/@sym/dilog.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (C) 2016, 2018-2019, 2022 Colin B. Macdonald
%% Copyright (C) 2016, 2018-2019, 2022-2023 Colin B. Macdonald
%%
%% This file is part of OctSymPy.
%%
Expand All @@ -25,8 +25,9 @@
%% @example
%% @group
%% syms z
%% @c doctest: +SKIP_UNLESS(pycall_sympy__ ('return Version(spver) > Version("1.12")'))
%% dilog (z)
%% @result{} ans = (sym) polylog(2, 1 - z)
%% @result{} ans = (sym) Li₂(1 - z)
%% @end group
%% @end example
%%
Expand Down
12 changes: 11 additions & 1 deletion inst/@sym/polylog.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (C) 2016, 2018 Colin B. Macdonald
%% Copyright (C) 2016, 2018, 2023 Colin B. Macdonald
%%
%% This file is part of OctSymPy.
%%
Expand Down Expand Up @@ -26,6 +26,16 @@
%% Example:
%% @example
%% @group
%% syms z
%% @c doctest: +SKIP_UNLESS(pycall_sympy__ ('return Version(spver) > Version("1.12")'))
%% polylog (-3, z)
%% @result{} ans = (sym) Li₋₃(z)
%% @end group
%% @end example
%%
%% For more complicated expressions, the printing uses a functional form:
%% @example
%% @group
%% syms z s
%% polylog(s, z)
%% @result{} ans = (sym) polylog(s, z)
Expand Down

0 comments on commit 15b68dc

Please sign in to comment.