How to get numerator and denominator

I need to do a lot of symbolic math processing these days.

First question: How can a spit an expression in nominator and denominator?

using Symbolics

@variables R a b c d 

y = (2a+3b)/(4R - 3d)

# den=
# num=
1 Like

Thanks, this works nicely:

using Symbolics

@variables R a b c d 

y = (2a+3b)/(4R - 3d)

numerator, denominator = Symbolics.arguments(Symbolics.value(simplify(y)))
numerator, denominator