spec/support/models/functions/baskara.rb in danica-2.2.1 vs spec/support/models/functions/baskara.rb in danica-2.3.0

- old
+ new

@@ -2,18 +2,18 @@ class Function::Baskara < Function.build(:a, :b, :c) { numerator / denominator } private def numerator - negative(b) + PositiveNegative.new(squared_root(delta)) + negative(b) + Wrapper::PlusMinus.new(squared_root(delta)) end def denominator number(2) * a end def delta - power(b, 2) - product(4, a, c) + power(b, 2) - multiplication(4, a, c) end end end