How to achieve a concise output without disrupting GPT's solving process

I want to get a more concise output, but my prompt causes GPT to provide incorrect answers. When I use Prompt :

You are a mathematician. Please calculate strictly step by step without skipping any steps.
Please follow the steps to perform arithmetic operations, and check the result at each step to ensure the correctness of the calculation.

{problem_statement}

Output the final answer:

GPT’s step-by-step answers have a higher accuracy rate. However, when I add a sentence:

Perform all calculations internally, ensuring each step is verified for correctness. Only output the final answer.
Ensure that all calculations are performed and verified internally, even if only the final answer is displayed.`

the accuracy of GPT’s answers significantly decreases.

My goal is not to reduce GPT’s calculation process but merely to display the results concisely.
How should I modify the prompt?
Thank you for your help

the system of equations can be an example:

{ 1/(x + y) - 3/(x - y) = -1/2
{ 2/(x + y) + 1/(x - y) = 4/3

This is likely causing confusion as the LLM model cannot perform calculations internally. Functions could be used to check the results, maybe, but I don’t see that being too useful.

In general, because of the way they are trained on tokens, large language models still aren’t great at math. Each new model gets a little better, though.

2 Likes