“\.08V”的含义对比“V”在原始表达中
有几次,细胞的原始表达在不同的使用过程中似乎发生了变化。
我最近发现的一个例子如下。
我有一个单元格,其开头为:
V = 0.1;
tt = 300;
其原始表达式近似为:
Cell[BoxData[{
RowBox[{
RowBox[{"V", "=", "0.1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"tt", "=", " ", "300"}], ";"}]}], "Input"]
单元格的视觉外观不会改变,但原始表达式有轻微的修改。
Cell[BoxData[{
RowBox[{
RowBox[{"\.08V", "=", "0.1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"tt", " ", "=", " ", "300"}], ";"}]}], "Input"]
变化是“V”→“0.08V”。有时,多个变量会发生这种情况并破坏表达式。
“.08V”的“.08”部分是什么意思?为什么它有时会意外地添加到我的笔记本中?
There have been a few times where the Raw Expression of a Cell seems to have changed between uses.
A recent example I have found is the following.
I have a cell that starts off as:
V = 0.1;
tt = 300;
With a raw expression of that is approximated by:
Cell[BoxData[{
RowBox[{
RowBox[{"V", "=", "0.1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"tt", "=", " ", "300"}], ";"}]}], "Input"]
The visual appearance of the cell does not change but the raw expression has a slight modification.
Cell[BoxData[{
RowBox[{
RowBox[{"\.08V", "=", "0.1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"tt", " ", "=", " ", "300"}], ";"}]}], "Input"]
The change being "V"->".08V". This sometimes happens with multiple variables and breaks the expression.
What is the meaning of the ".08" part of ".08V"? Why is it unexpectedly added to my notebooks on occasion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
\.08
是两位十六进制字符转义码< /a>.在我的系统上,它是一个矩形中的菱形。我不知道为什么它会被插入你的笔记本中。\.08
is a two digit hexadecimal character escape code. On my system it is a diamond in a rectangle. I don't know why it would be inserted into your notebook.当您在 PC 上使用美国国际键盘时,您会得到该转义码字符,该键盘具有用于创建重音的“死字母”系统。在这种类型的键盘上,如果您键入双引号,您一开始不会看到任何内容,但如果您随后输入“a”,您会得到一个 a 变音符号:ä。
无论如何,当您键入双引号时,MMA 中会出现特定字符 .08,另一个不与该引号组合成重音字母的字母(所以,没有 a、ou 等),然后键入第二个死引号并退格删除第二个引号,在它变得可见之前,在其后面加上另一个字符。因此,例如,如果您输入
“s”退格键
,您将得到这个字符。
e'退格键
也有效。我想你只是在没有注意到的情况下在某个地方犯了一个打字错误。
You get that escape code character when you use the US international keyboard on a PC, which has this 'dead letter' system to create accents. On this type of keyboard if you type a double quote you don't see anything at first but if you then enter an "a" you get an a-umlaut: ä.
Anyway, the specific character .08 comes into existence in MMA when you type a double quote, another letter that does not combine with this quote to an accent letter (so, no a, o u etc), then type a second -dead- quote and backspace erase that second quote before it becomes visible by following it with another character. So, if you type
"s"backspace
for instance, you get this character.
e'backspace
works too. I think you just made a typo somewhere without noticing.