It seems that GPT 3.5 Turbo is not able to turn to polar coordinates when solving the integral of a Gaussian function. Any clue if Chat GPT 4 is able to do that? I am not sure if this a legitimate question. If not, please delete it!
Welcome to the forum!
I find that if you ask ChatGPT to list the rules of Calculus needed to solve the problem in Prolog then ask it to use chain of thought by showing each step it does much better.
For a post with more detail see
There are two basic yet powerful ideas behind this that work in other situations.
-
Converting the part that needs to be translated to something the LLM is trained. For example many find that translating the question to English then asking the question and translating back to the original language is better than prompting in the original language. Also programmers find that translating the code to Python, asking for the Python code to solve the problem then translating the Python back to original language works better at times.
-
Give the LLM time to think as some would say or to reason out the steps by using Chain of Thought. In this case by listing the Calculus rules needed first one can see that the LLM knows the correct rules and then can use those rules to solve the problem.
While I know Prolog and what and how the rules of Calculus in Prolog work, many may not and so my adaptation is not suitable for all. However these two ideas do seem to fit well in certain situations.