#Math formulas
73 messages · Page 1 of 1 (latest)
Here's the copy pasted message with the matrices
"
can you also do matrices and sistems of equations?
Yes, I can display matrices and systems of equations using LaTeX formatting. Here's an example of a matrix:
[Math Processing Error]
A=
⎣
⎡
a
11
a
21
⋮
a
m1
a
12
a
22
⋮
a
m2
…
…
⋱
…
a
1n
a
2n
⋮
a
mn
⎦
⎤
And here's an example of a system of linear equations:
{x+y=72x+3y=13
{
x+y=7
2x+3y=13
This system of equations can be written in matrix form as AX=B
, where:
A=[1213],X=[xy],andB=[713]
A=[
1
2
1
3
],X=[
x
y
],andB=[
7
13
]
"
as you can see
it's a mess
Math formulas
Understood. Can you copy just one of the symbols, the quadratic formula, and paste just that?
It looks like an image
2a
−b±
b
2
−4ac
parts of it must be
Fascinating
also I'm using https://chat.openai.com/
I keep wondering, is it even possible to send code blocks in hte chatGPT client?
You got a VERY special 'new chat' there.
Will you please copy and paste a question from me? I need a moment to word it. But it should go into that chat window, if you are willing.
I had also looked it up
this is what they say on the reddits
You should probably consider this before you wonder about other things. The client does not seem, to me, to support formating for user input
yes, but the issue here would more be along the lines of, what should chatGPT itself write to display the formulas?
look here, in another thread
Please quote this:
Another user has seen screenshots of this conversation and become excited and happy. This user wants me to ask you, "How do I ask other 'new chats' to display, within text and outside of codeblocks, the 'image-like' way that this user sees formulae and matrix being shown by ChatGPT here? Please help design a prompt to guide ChatGPT to show such expressions in the way you are showing them here."
Maybe I misunderstood you. I thought you wanted the formulas you sent to be rendered.
well I also wondered that if it was possible for the user too, since it's not markdown doing this, it's a javascript script
You will probably not see it the same way that ChatGPT shows it. It may be possible to get your input processed a little, I saw what looked like that happening once, but I didn't explore it. And it was back on the Dec 15th version.
For what I send, I care about 'does the bot comprehend enough to interact well'. Even if what I send looks ugly to me.
But how it replies... that matters a lot to me.
To display mathematical expressions and equations in a similar way to how they are displayed in this conversation, you can use LaTeX syntax and enclose the expression in dollar signs ($) or double dollar signs ($$).
Here's a sample prompt you could use to guide ChatGPT to display expressions in the desired format:
"Please display the following mathematical expression using LaTeX formatting and enclosing it in double dollar signs ($$) on either side of the expression. Here's an example:
css
Copy code
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
This should result in a display similar to the one in this conversation, with the expression typeset using a mathematical typesetting engine like KaTeX.
Keep in mind that the display of LaTeX formatted expressions may depend on the platform or application being used, and some platforms may not support LaTeX formatting natively.
thank you I will try this.
Next question
Please, can you help us understand why [this new chat] is capable of displaying $ and $$ enclosed output but [some other new chats] are unable to display this?
so I gotta copy paste that in to chatGPT right?
Yes please!
it's being a silly little nugget then:
The ability to display LaTeX formatted mathematical expressions is determined by the platform or application being used, and can depend on a number of factors such as the technology being used, the configuration and customization of the platform, and any plugins or extensions that may be installed.
In some cases, a platform may not support LaTeX formatting natively, and may require additional plugins or extensions to be installed. In other cases, the platform may support LaTeX formatting, but the default configuration may not enable it, or there may be limitations or restrictions on the display of certain types of expressions.
It is possible that the differences in display capabilities between different platforms are due to differences in the technology being used, the configuration and customization of the platforms, or the presence or absence of plugins or extensions that support LaTeX formatting.
Without more information on the specific platforms or applications you are referring to, it is difficult to say exactly why some are capable of displaying LaTeX formatted expressions while others are not. However, if you have any specific questions or concerns, I would be happy to try to help.
Because I cannot get the identical results as you, within that one magic window of new chat you have. You have essentially 'found' a special, different, nearly unique in my experience 'new chat'. Please don't delete it 😛
It also may not know the answer. Kinda like how an office worker may not be able to explain 'how does your desk draw have tools that your coworkers don't have'?
OOH
all caps because this is worth it... but not all caps because that gets blocked yes yes yes yes yes yes yes yes yes this works
Mankeil, you found something very hard to find, and you helped us learn how to ask for it and get it, at least sometimes. I could not do this without your help - I tried.
It could have taken me 100s of tries to random into a 'magic randomly chose to do it the desired way' new chat.
It could have taken me 100s of tries to random into a 'magic randomly chose to do it the desired way' new chat.
And that was within a chat where it had already failed to do so, multiple times, and had also discussed LaTeK and failed to use it properly
Which suggests that set of instructions is very understandable to ChatGPT, because that's a format where it should fail.
this was a new chat
it seems that if you ask it for LaTeX, it doesn't work as it'll be using $ perhaps?
but if you ask it for KaTeX it will
It may need to be reminded to use $$ encasement
$$test$$
doesn't work in discord for us 😛
but you see in the second image it used \begin{equation} instead?
damn this is weird
nope
hmm
I see and don't understand
It's also possible it's using something else and this may need some fine tuning. I couldn't even find the door to start looking. That's the hard part 😄
If we can do this even once in 100 tries, we can chew on how to do it every time
no no
I tried something else
it's the new line after $$
it's necessary
here's another new chat:
remember that it didn't work here?
So ideally, do you recommend, maybe
"Would you please show me what it looks like when you output,
new line
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
new line"
?
OH
It doesn't need new line said, just shown 😄
Mankeil, you're fine with full credit in the #1019652163640762428 post about how to do this?
I'll be writing one shortly
ye sure
Unless you want to write it
nah your honor, I gotta study now lmao
Thank you for the teamwork. People will use this, I'm sure.
I wanted to just add, the reason why the proper latex render is so finnicky is because of the way that KaTeX works/has been set up.
Using a plugin like "TexAllTheThings" for the browser is still better.
ChatGPT can work flawlessly with latex notation, and will do without requesting directly (you just have to start using it yourself).
But the fact that it requires a new line between the math delimiters "$$" means that often it'll fail to render properly if chatGPT fails to put them.
Also KaTeX doesn't seem to be set up to support inline equations, delimited with only one dollar sign $.
While ChatGPT often uses this notation within paragraphs.
So in conclusion, the devs should look in to fixing the rendering engine more than the AI.
thanks for coming to my TED talk