chathub icon indicating copy to clipboard operation
chathub copied to clipboard

Bing responds with crappy mathematical polynomials

Open polkovnikov opened this issue 2 years ago • 3 comments

On this image Bing tried to write text , then f(x) + 2ax + a^2 must also be a perfect, but instead of a^2 it raised 2 to the upper script and also raised whole remaining paragraph text.

Probably a^2 is considered to be a MarkDown syntax by ChatHub. But here it is a power of a constant term inside a polynomial.

I think this issue can be solved if Bing API is actually responding with XML, then any text inside plain part of XML should be considered as Plain, not as markdown.

I think only Code Snippets and URLs are formatted by Bing as not plain text, the remaining should be printed to chatbox as pure plain text. So in the picture above I should see just plain a^2.

But of course user input should have some markdown capabilities, for that case raising to the upper script inside a^2 is totally alright, because if I want plain formula I can always add backticks around expression.

polkovnikov avatar Mar 30 '23 13:03 polkovnikov

Can you post the prompt here?

wong2 avatar Mar 30 '23 13:03 wong2

@wong2 Sure, I have polynomial f(x) with integer only coefficients. And I want to know if it is a perfect square, meaning that exist another integer polynomial g(x) that is f(x) = g(x)^2. What all properties of f(x) can you list that would tell me that f(x) is Probably a perfect square? For all properties give me examples of polynomials.

Here is also sharegpt link to it.

polkovnikov avatar Mar 30 '23 13:03 polkovnikov

OK, I'll look into it.

wong2 avatar Mar 30 '23 13:03 wong2