spec/lib/function_spec.rb in dydx-0.1.41421 vs spec/lib/function_spec.rb in dydx-0.2.7000000
- old
+ new
@@ -60,6 +60,11 @@
expect(f(y)).to eq(sin(y))
g(x) <= d/dx(f(x))
expect(g(pi)).to eq(-1)
end
+
+ it 'ex7' do
+ f(x) <= (1 + 1/x) ** x
+ expect(f(100000)).to eq(2.7182682371744895)
+ end
end