cipheron

GPT Math Errors

May 15th, 2023 (edited)
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. ========================================================================================
  2. Example #1 - ChatGPT can find the biggest or smallest easily.
  3. To find the things like "third largest" it needs to first
  4. print out a sorted copy of the entire list, then can picks the item by location.
  5. Asked for the "closest" item to some value: it struggles and guesses at random
  6. ========================================================================================
  7.  
  8. ME: given this list [12, 6, 18, 3, 15, 9, 20, 2, 17, 5\]
  9. add the third largest and second smallest number
  10.  
  11. To find the third largest number in the given list
  12. [12, 6, 18, 3, 15, 9, 20, 2, 17, 5\],
  13. we can arrange the numbers in descending order:
  14. [20, 18, 17, 15, 12, 9, 6, 5, 3, 2\]
  15. The third largest number is 17.
  16.  
  17. To find the second smallest number,
  18. we can arrange the numbers in ascending order:
  19. [2, 3, 5, 6, 9, 12, 15, 17, 18, 20\]
  20. The second smallest number is 3.
  21. Now, we can add the third largest number (17)
  22. and the second smallest number (3):
  23. 17 + 3 = 20
  24.  
  25. ME: which value in the list is closest to 13?
  26.  
  27. To determine which value in the list
  28. [12, 6, 18, 3, 15, 9, 20, 2, 17, 5\] is closest to 13, we can
  29. calculate the absolute difference between each number and 13 and
  30. identify the number with the smallest absolute difference.
  31.  
  32. Here are the absolute differences for each number:
  33. |12 - 13| = 1 |6 - 13| = 7 |18 - 13| = 5 |3 - 13| = 10 |15 - 13| = 2
  34. |9 - 13| = 4 |20 - 13| = 7 |2 - 13| = 11 |17 - 13| = 4 |5 - 13| = 8
  35.  
  36. From the calculations, we can see that the number 15 has the smallest
  37. absolute difference from 13, which is 2. Therefore, the value in the
  38. list closest to 13 is 15.
  39.  
  40. ^ Note, ChatGPT couldn't do the "sorting trick" in this last example, and just guesses, and may guess wrong.
  41.  
  42. ========================================================================================
  43. Example #2 - working with a list of priced items
  44. I asked ChatGPT to write a list of random objects with prices accurate to the cent.
  45. ChatGPT can tell you the most expensive or least expensive item on the list
  46. However, when asked for "second most expensive" it can no longer pull off the "sorting" trick.
  47. Instead, it seems to pick one at random.
  48. ========================================================================================
  49.  
  50. Here's a list of 20 random objects with prices rounded to two decimal places:
  51.  
  52. Pen - $3.27
  53. Coffee mug - $8.54
  54. Sunglasses - $12.91
  55. Headphones - $49.68
  56. Wallet - $21.75
  57. Notebook - $6.82
  58. T-shirt - $15.46
  59. Umbrella - $18.29
  60. Keychain - $2.93
  61. Watch - $67.13
  62. Backpack - $32.57
  63. Water bottle - $9.83
  64. Phone case - $14.79
  65. Laptop stand - $27.94
  66. Wallet - $19.62
  67. Plant pot - $5.38
  68. Bluetooth speaker - $42.15
  69. Scarf - $11.27
  70. Mousepad - $8.79
  71. Duffel bag - $36.45
  72.  
  73. > what is the cheapest item
  74.  
  75. The cheapest item on the list is the keychain, priced at $2.93.
  76.  
  77. > what is the most expensive item
  78.  
  79. The most expensive item on the list is the watch, priced at $67.13.
  80.  
  81. what is the second most expensive item
  82.  
  83. The second most expensive item on the list is the laptop stand,
  84. priced at $27.94.
  85.  
  86. ========================================================================================
  87. Example #3 - finding items by some criteria
  88. I asked ChatGPT to make a list of 20 random fruits.
  89. I then asked it to tell me how many on the list start with "P"
  90. It failed at this and said 3 instead of 5.
  91. The reason for this is that it doesn't really read the list, it answers at random,
  92. then only after that, it comes up with examples to justify the fake answer.
  93. ========================================================================================
  94.  
  95. ME: list 20 types of fruit
  96.  
  97. Certainly! Here are 20 types of fruit:
  98.  
  99. Apple
  100. Banana
  101. Orange
  102. Mango
  103. Strawberry
  104. Pineapple
  105. Watermelon
  106. Grapefruit
  107. Pear
  108. Kiwi
  109. Cherry
  110. Blueberry
  111. Raspberry
  112. Peach
  113. Plum
  114. Lemon
  115. Lime
  116. Coconut
  117. Papaya
  118. Avocado
  119.  
  120. Please note that this is not an exhaustive list, as there are many more delicious fruits out there!
  121.  
  122. ME: how many of those start with p?
  123.  
  124. There are three fruits in the list I provided that start with the letter "P":
  125.  
  126. Pear
  127. Pineapple
  128. Plum
Advertisement
Add Comment
Please, Sign In to add comment