Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rationalize failing #1331

Closed
n0rbed opened this issue Oct 30, 2024 · 1 comment
Closed

rationalize failing #1331

n0rbed opened this issue Oct 30, 2024 · 1 comment

Comments

@n0rbed
Copy link
Member

n0rbed commented Oct 30, 2024

julia> @variables a b c d s;

julia> eq = ((s^2 + 1)/(s^2 + 2*s + 1)) -(s^2 + a)/(b*c*s^2 + (b+c)*s + d/c);

julia> rationalize(eq)
ERROR: MethodError: no method matching rationalize(::Type{Int64}, ::Num)
The function `rationalize` exists, but no method is defined for this combination of argument types.

We can see in the stacktrace that it is calling rationalize(x::Num) though, so not sure why this error is showing.

Stacktrace:
 [1] rationalize(x::Num; kvs::@Kwargs{})
   @ Base ./rational.jl:267
 [2] top-level scope
   @ REPL[9]:1
@n0rbed
Copy link
Member Author

n0rbed commented Oct 30, 2024

I think the correct function here is simplify_fractions actually...

@n0rbed n0rbed closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant