rich icon indicating copy to clipboard operation
rich copied to clipboard

Can it display the mathematical equations in terminal as markdown?[REQUEST]

Open Meshwa428 opened this issue 2 years ago • 2 comments

Consider posting in https://github.com/textualize/rich/discussions for feedback before raising a feature request.

Have you checked the issues for a similar suggestions? No, not realy

So I just wanted to ask that can rich display this sort of equations in the terminal

To find the zeroes of the quadratic equation 2x^2 + 3x - 2 = 0, you can use the quadratic formula or factor the equation:

The quadratic formula is given by: [x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}]

In your equation, a = 2, b = 3, and c = -2.

Using the quadratic formula: [x = \frac{-3 \pm \sqrt{3^2 - 4(2)(-2)}}{2(2)}]

Now, calculate the discriminant ((b^2 - 4ac)): [3^2 - 4(2)(-2) = 9 + 16 = 25]

So, the square root of the discriminant is (\sqrt{25} = 5).

Now, plug the values into the quadratic formula: [x = \frac{-3 \pm 5}{4}]

This gives you two possible solutions:

  1. [x = \frac{-3 + 5}{4} = \frac{2}{4} = \frac{1}{2}]
  2. [x = \frac{-3 - 5}{4} = \frac{-8}{4} = -2]

So, the zeroes of the equation 2x^2 + 3x - 2 = 0 are (x = \frac{1}{2}) and (x = -2).

Meshwa428 avatar Oct 19 '23 21:10 Meshwa428

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

github-actions[bot] avatar Oct 19 '23 21:10 github-actions[bot]

I mean like can it display the LaTex kinda thing in terminal

Meshwa428 avatar Oct 26 '23 09:10 Meshwa428