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 e4b5b62 commit 106b052Copy full SHA for 106b052
spec/functions_spec.rb
@@ -2,6 +2,26 @@
2
let(:pi) { SymEngine::PI }
3
let(:e) { SymEngine::E }
4
let(:x) { sym("x") }
5
+ let(:y) { sym("y") }
6
+
7
+ context "Abs" do
8
+ context "with a symbol" do
9
+ subject { SymEngine::abs(x)}
10
+ it { is_expected.to be_a SymEngine::Abs }
11
+ end
12
+ context "with an integer" do
13
+ subject { SymEngine::abs(SymEngine(1))}
14
+ it { is_expected.to be_a SymEngine::Integer }
15
16
+ context "with a symbol addition" do
17
+ subject { SymEngine::abs(x+y) }
18
19
20
+ context "with a function of a symbol" do
21
+ subject { SymEngine::abs(SymEngine::sin(x)) }
22
23
24
25
26
context '2*x' do
27
[
0 commit comments