英文:
(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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论