djmango / markdown-webview

A performant SwiftUI Markdown view.
MIT License
0 stars 2 forks source link

LaTeX issue #4

Open oxy9en opened 2 days ago

oxy9en commented 2 days ago

Look my screenshot

Screenshot 2024-06-29 at 10 01 44 AM

you can see problems with a view of a few formulas, provided by OpenAI OpenAi responds:

Step 1: Understand the imaginary unit \( i \).
The imaginary unit \( i \) is defined as the square root of -1. That is, \( i^2 = -1 \).

Step 2: Factor out the negative from the radical.
When you have a negative number inside a square root, you can factor out the negative as the imaginary unit \( i \). For the square root of -81, you can write it as:
\[ \sqrt{-81} = \sqrt{-1 \times 81} \]

Step 3: Separate the square root of the negative one and the square root of 81.
\[ \sqrt{-1 \times 81} = \sqrt{-1} \times \sqrt{81} \]

So, the simplified form of (\sqrt{-81}) using the imaginary unit ( i ) is ( 9i ). This is the answer you would input in the provided space in the exercise.

Look like you works correctly with tags ( ) but doesn't work with [ ] The surrounding square brackets [and ] are used in LaTeX to indicate that the enclosed text is a mathematical expression, which appears centered and on its own line. Surrounding parentheses (and ) are used in LaTeX to indicate that the text enclosed within them is a mathematical expression that appears on the same line without hyphenation.

djmango commented 2 days ago

Adding this to i.inc issues list - should be resolved and released very soon