最近一段时间ChatGPT风光无限,可真是火出了圈内圈外。ChatGPT是一个人工智能聊天机器人程序,由OpenAI基于GPT-3.5架构的大型语言模型进行训练,通过人机交互的问答,和用户进行真实自然的交流。
刚才正好在看一篇微信公众号的文章,题目是《让孩子爱上数学,这是最高级别的游戏》,就像如下图示的提问,让ChatGPT完成中文分词,并对每个token进行词性标注,结果十分惊艳。
在好奇心的驱使下,又拿了一道1-2年级水平的袋鼠竞赛试题去挑战一下ChatGPT,解答的过程还是有推理有结论,尽管结果是错的!正确结果是:4只双峰驼。
题目:
There are 10 camels in a zoo. The camels are either Bactrian (with two humps) or Dromedary (with one hump). In total there are 14 humps. Find the number of Bactrian camels in the zoo.
动物园里有 10 头骆驼。骆驼是双峰驼(有两个驼峰)或单峰骆驼(有一个驼峰)。总共有14个驼峰。求动物园中双峰驼的数量。
- ChatGPT的解答过程:
Let’s call the number of Bactrian camels in the zoo x. Since Bactrian camels have two humps, the number of humps on the Bactrian camels is 2x.
The number of Dromedary camels in the zoo is 10-x, and since Dromedary camels have one hump, the number of humps on the Dromedary camels is (10-x) * 1 = 10-x.
The total number of humps in the zoo is the sum of the number of humps on the Bactrian camels and the number of humps on the Dromedary camels, or 2x + (10-x). This is equal to 14, so we can set up the equation:
2x + (10-x) = 14
Combining like terms, we get:
x = 7
Therefore, there are 7 Bactrian camels in the zoo.
我们称动物园中双峰驼的数量为 x。由于双峰驼有两个驼峰,因此双峰驼的驼峰数量是 2 倍。
动物园里单峰骆驼的数量是10-x,由于单峰骆驼只有一个驼峰,所以单峰骆驼身上的驼峰数量是(10-x) * 1 = 10-x。
动物园的驼峰总数是双峰驼的驼峰数和单峰骆驼的驼峰数之和,即2x + (10-x)。这等于 14,因此我们可以建立等式:
2x + (10-x) = 14
结合类似的条款,我们得到:
x = 7
因此,动物园里有7只双峰驼。
- 又问一遍ChatGPT,这次算对了!,计算过程中用到了二元一次方程组
Let’s call the number of Bactrian camels in the zoo x, and the number of Dromedary camels in the zoo y. We know that x + y = 10 and that 2x + y = 14. We can solve for x by subtracting the first equation from the second: 2x - x = 14 - 10. This simplifies to x = 4. Therefore, there are 4 Bactrian camels in the zoo.
我们称动物园中双峰驼的数量为 x,单峰骆驼的数量为 y。我们知道 x + y = 10 和 2x + y = 14。我们可以通过从第二个方程中减去第一个方程来求解 x:2x - x = 14 - 10。这简化为 x = 4。因此,有 4动物园里的双峰驼。