@isuruf

I implemented a Singleton class in #846 .

Could you please look into it.

I am at a fix here.

I have changed the inheritances too.

Though I have not implemented

I implemented a Singleton class in #846 .

Could you please look into it.

I am at a fix here.

I have changed the inheritances too.

Though I have not implemented

`add`

, `sub`

etc, I plan to implement them soon.
Set inheriting from Number is not the way to go. As I mentioned in the PR, design of Interval depends on what you are going to be using it for

As for the singleton, what's wrong with the current solution?

Interval will be used for returning solutions to inequalities.

And could you please elaborate of what you expect a

`set`

class to be like.
trying to solve symengine/symengine.rb#19 but unable to find where change is to be made

i have found the method but do not know where rational function is defined

@nishnik, you should have mentioned solutions to inequalities. I was thinking along the lines of what arb does.

If you are using it for returning solutions to inequalities, then you don't need to inherit from

If you are using it for returning solutions to inequalities, then you don't need to inherit from

`Number`

. Just from `Basic`

is enough.
@badcoderparashar, function is here, https://github.com/symengine/symengine.rb/blob/master/ext/symengine/ruby_rational.h