# GPT-4 Still Struggles with basic Arithmetic

**URL:** <https://community.openai.com/t/gpt-4-still-struggles-with-basic-arithmetic/99631>\
**Category:** ChatGPT\
**Created:** [March 15, 2023, 4:49am UTC](https://community.openai.com/t/gpt-4-still-struggles-with-basic-arithmetic/99631 "2023-03-15T04:49:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradhith.konduri](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/pradhith.konduri/32/41519_2.png) [@pradhith.konduri](https://community.openai.com/u/pradhith.konduri)\
**Post date:** [March 15, 2023, 4:49am UTC](https://community.openai.com/t/gpt-4-still-struggles-with-basic-arithmetic/99631/1 "2023-03-15T04:49:30Z")

</div>

I was using ChatGPT (with GPT 4) to solve this [AMC 12 math problem](https://artofproblemsolving.com/wiki/index.php/2022_AMC_10A_Problems/Problem_16). It sets up the equations correctly, but fails with some arithmetic at the very end: just adding fractions!

Somehow it simplifies `2(29/10)` as `58/5` instead of `29/5`.

 ![Screenshot 2023-03-14 at 11.44.49 PM](https://us1.discourse-cdn.com/openai1/original/3X/c/0/c0e815c6dcf631d3e94e3fcc517ba1c91eab584a.png)

I prompted it again pointing out that it calculated incorrectly, but still makes a similar arithmetic mistake. Any ideas or way to prompt ChatGPT to do arithmetic correctly?

_Initial prompt_  
`The roots of the polynomial 10x^3 - 39x^2 + 29x - 6 are the height, length, and width of a rectangular box (right rectangular prism). A new rectangular box is formed by lengthening each edge of the original box by 2 units. What is the volume of the new box? `

_Response_  
Let the roots of the polynomial be h, l, and w, which represent the height, length, and width of the original box, respectively. According to Vieta’s formulas, we can derive the following relationships from the polynomial’s coefficients:

h + l + w = 39/10  
hl + hw + lw = 29/10  
hlw = 6/10 = 3/5  
Now, consider the new box with dimensions (h+2), (l+2), and (w+2). We want to find the volume of this new box, which is:

V\_new = (h+2)(l+2)(w+2)

To find V\_new, we can expand the expression:

V\_new = (h+2)(l+2)(w+2)  
= (hlw + 2lw + 2hw + 2hl + 4w + 4l + 4h + 8)

We know that h + l + w = 39/10, hl + hw + lw = 29/10, and hlw = 3/5, so we can substitute these values into the expression for V\_new:

V\_new = (3/5 + 2(29/10) + 4(39/10) + 8)

Now, we simplify the expression:

V\_new = (3/5 + 58/5 + 156/5 + 8)  
= (3/5 + 58/5 + 156/5 + 40/5)  
= (3 + 58 + 156 + 40)/5  
= 257/5

Thus, the volume of the new box is 257/5 cubic units.
