为什么 chatgpt 连 16 进制转二进制都会搞错?

66 天前
 huangya

问题很简单,就是想让它帮我解析一个寄存器的各个 bit 代表的含义。这个寄存器读出来是 16 进制的。它需要转换成二进制。根据公开的 ieee 标准每个 bit 都有特定的含义。但是它转换成二进制的时候,总是会弄错。比如 bit2 是 1 ,它理解成 0.是我的提问方式不对吗?还是选择的模型不对?我用的是 gpt-4o 。请大家指点一下。

Parsing Ethernet PHY status register

Message From You:

get the value of ethernet phy register 1(status register). Its value is 0x796d. Please help me parse the value

Message From ChatGPT:

Certainly! The value of the Ethernet PHY status register (register 1) is 0x796d. To parse this value, we need to understand the typical bit definitions for this register. The exact bit definitions can vary depending on the specific PHY chip, but I'll provide a common example based on the IEEE 802.3 standard for PHY status registers.

The common bit definitions for the status register (register 1) are:

Given the value 0x796d, let's convert it to binary:

0x796d = 0b0111100101101101

Now, let's map this binary value to the status register bits:

So, the parsed values are:

Note that these interpretations are based on a common definition of the status register. For exact bit definitions, you should refer to the datasheet of the specific PHY chip you are using.

Message From You:

Bit 2 is 1 ,why you say is 0. Please check again

Message From ChatGPT:

I apologize for the oversight. Let's re-evaluate the binary representation of the value 0x796d and correctly interpret bit 2.

The hexadecimal value 0x796d converts to binary as follows:

0x796d = 0b0111100101101101

Now, let's break down the binary value into individual bits:

So, the corrected bit values are:

So, the parsed values are:

Thank you for pointing out the mistake.

Message From You:

Bit 3 is also wrong. It's 1, not 0

Message From ChatGPT:

You're correct. Let's re-evaluate the binary representation of 0x796d and correctly interpret the bits.

The hexadecimal value 0x796d converts to binary as follows:

0x796d = 0b0111100101101101

Breaking down the binary value into individual bits:

So, the corrected bit values are:

So, the parsed values are:

Thank you for pointing out the mistake.

Message From You:

I'm afraid bit 7 is also wrong. It should be 0 instead of 1

Message From ChatGPT:

Let's carefully re-evaluate the binary representation of 0x796d and correctly interpret the bits.

The hexadecimal value 0x796d converts to binary as follows:

0x796d = 0b0111100101101101

Breaking down the binary value into individual bits:

So, the corrected bit values are:

So, the parsed values are:

Thank you for pointing out the corrections.

1617 次点击
所在节点    OpenAI
14 条回复
love060701
66 天前
LLM 不擅长逻辑计算,你这种场景,不如让 ChatGPT 给你写个脚本更有效
TabGre
66 天前
或许因为你不懂 LLM ? dog:)
cwxiaos
66 天前
llm 是序列预测啊,本质上就是成语接龙,不借助其它技术没啥计算能力
shyangs
66 天前
LLM 不擅長邏輯計算,但可以寫腳本。這表示寫腳本的機器人可以不擅長邏輯計算。
lDqe4OE6iOEUQNM7
66 天前
@huangya 他不是计算器呀,聊天模型,聊天懂吗?,随机最大概率回复你就行,不保准的
huangya
66 天前
@love060701
@TabGre
@cwxiaos
@shyangs
@James2099
我还真不知道不擅长计算,感谢点拨。
shyangs
66 天前
@huangya

其實 LLM 也不擅長寫腳本, 因為它不擅長邏輯計算.

它只是複讀機, 把別人寫過的腳本複讀出來, 讓人覺得它會寫腳本.
foolLi
66 天前
你叫它使用代码和相关计算工具给你做,它就会调用工具或写代码做,正确性就高了
Ericcccccccc
66 天前
语言模型适合写作文,不适合做算数

简单来讲,chatgpt 这类东西是看完了一千万本书,然后建立了 x 后面应该是 y1 还是 y2 的预测模型

现在拿着 1+2=? 问它,它发现 3 这个字符是概率最大的

但更复杂的算数场景它未必能正确预测出正确的下个字符
villivateur
66 天前
因为 GPT 只适合做文科,搞不来理科
coolfan
66 天前
就像你心算 843751*9437 也算,拟人
cvbnt
66 天前
数学方面,你可以试试 Wolfram GPT
maymay5
63 天前
base64 转码都有可能错
huangya
45 天前
@cvbnt 今天我问了相同的问题,Wolfram GPT 也没有完全算对。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1056809

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX