class MathPrograms::E10P
Attributes
          a[R]
        
        
          s[R]
        
        Public Class Methods
            new(a, s)
            click to toggle source
          
        # File lib/math_programs/e10p.rb, line 97 def initialize a, s @a, @s = a, s end
Public Instance Methods
            problem()
            click to toggle source
          
        Return the problem.
# File lib/math_programs/e10p.rb, line 102 def problem "#{@a}, #{@s}" end
            solve()
            click to toggle source
          
        Solve the problem.
Return: string. If no solution, empty string (nil.to_s) is returned.
# File lib/math_programs/e10p.rb, line 109 def solve solve_real(@a, @s).to_s end