We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d18f52 commit 0b0f13dCopy full SHA for 0b0f13d
inst/@sym/pyobject.m
@@ -1,4 +1,4 @@
1
-%% Copyright (C) 2016 Colin B. Macdonald
+%% Copyright (C) 2016-2017 Colin B. Macdonald
2
%%
3
%% This file is part of OctSymPy.
4
@@ -24,10 +24,11 @@
24
%% Example:
25
%% @example
26
%% @group
27
+%% @c doctest +SKIP_IF(~strcmp(sympref('ipc'), 'native')))
28
%% syms x
29
%% f = 2*sin(x/2);
30
%% pyobject(f)
-%% @result{} ans = [pyobject ...]
31
+%% @result{} ans = [Python object of type sympy.core.mul.Mul]
32
33
%% 2*sin(x/2)
34
@@ -39,7 +40,7 @@
39
40
41
function y = pyobject (x)
42
- y = py.sympy.S (char (x));
43
+ y = py.sympy.S (sympy (x));
44
45
% Above is nice because it needs no imports. But downside is some
46
% things like NonElementaryIntegral and MatrixElement will fail. See
0 commit comments