File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ %% Copyright (C) 2017 Lagu
2+ %%
3+ %% This file is part of OctSymPy.
4+ %%
5+ %% OctSymPy is free software; you can redistribute it and/or modify
6+ %% it under the terms of the GNU General Public License as published
7+ %% by the Free Software Foundation; either version 3 of the License,
8+ %% or (at your option) any later version.
9+ %%
10+ %% This software is distributed in the hope that it will be useful,
11+ %% but WITHOUT ANY WARRANTY; without even the implied warranty
12+ %% of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13+ %% the GNU General Public License for more details.
14+ %%
15+ %% You should have received a copy of the GNU General Public
16+ %% License along with this software; see the file COPYING.
17+ %% If not, see <http://www.gnu.org/licenses/>.
18+
19+ %% -*- texinfo -*-
20+ %% @documentencoding UTF-8
21+ %% @defmethod domain (@var{x})
22+ %% Return the domain @var{x}.
23+ %%
24+ %% List of supported domains (from SymPy 1.0.1):
25+ %% EmptySet
26+ %% Integers
27+ %% Naturals
28+ %% Naturals0 (Naturals with 0)
29+ %% Reals
30+ %% Complexes
31+ %% UniversalSet
32+ %%
33+ %% Example:
34+ %% @example
35+ %% @group
36+ %% domain ('Reals')
37+ %% @result{} ans = (sym) ℝ
38+ %% @end group
39+ %% @end example
40+ %%
41+ %% @example
42+ %% @group
43+ %% domain ('Complexes')
44+ %% @result{} ans = (sym) ℂ
45+ %% @end group
46+ %% @end example
47+ %%
48+ %% @end defmethod
49+
50+
51+ function y = domain(x )
52+ if (nargin ~= 1 )
53+ print_usage ();
54+ end
55+ y = python_cmd (strrep (' return S.{domain}' , ' {domain}' , x ));
56+ end
You can’t perform that action at this time.
0 commit comments