# Simplifying when solving Einstein equation

Hello

I'm solving Einstein equation in vacuum. I already computed the Ricci tensor. For example, de first Ricci component is saved in the following variable eq1:

eq1=EE[0,0]

The denominator of the component should vanish since since the other part of the equation is zero. How can I extract numerator of the expression. I have tried:

eq1.denominator()

But it does not work.Thanks

Welcome to Ask Sage! Thank you for your question!

Please provide code that can be copied and pasted in a fresh Sage session to reproduce the problem.

To display blocks of code or error messages in Ask Sage, skip a line above and below, and do one of the following (all give the same result):

For instance, typing

produces: