(APL)关于幂运算和圆形函数

huangapple go评论70阅读模式
英文:

(APL) About the power and circle functions

问题

*○0j1为什么输出-1,但*(○0j1)不输出?(¯1j1e¯16)
它们之间有什么区别?
预期*(○0j1)输出与*○0j1相同。

英文:

Why does *○0j1 outputs -1 but *(○0j1) doesn’t? (¯1j1e¯16)
What is the difference between them?

Expected *(○0j1) to output the same thing as *○0j1

答案1

得分: 2

假设这是Dyalog APL,那么这是因为*○0j1被识别为一个习语,精确的期望结果被返回,而不是计算为*(○0j1)

Dyalog的习语列表在这里

英文:

Assuming this is Dyalog APL, then it's because *○0j1 is recognised as an idiom and the exact expected result is returned rather than being calculated as *(○0j1) is.

Dyalog's idiom list is here

huangapple
  • 本文由 发表于 2023年3月4日 00:40:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/75629713.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定