Maxima
multiple commands on a single line
skyground21
2023. 6. 26. 08:56
multiple commands on a single line
If you want to enter multiple commands on a single line, you can separate them with a semicolon (;) or a dollar ($).
However, the output of commands that end with a dollar ($) is not displayed on the screen.
한줄에 여러 명령 입력 방법
한 줄에 여러 개의 명령을 입력하고 싶을 때는 세미콜론(;) 또는 달러($)로 구분하면 된다.
단, 달러($)로 끝나는 명령의 출력은 화면에 표시되지 않는다.
(%i13) sqrt(2)+1; 10-1/x; sin(x)^2+cos(x)^2;
They are all concatenated with ";" so that the results all appear on the screen.
모두 ";"으로 연결되어 있어 결과가 모두 화면에 나타난다.
(%i16) sqrt(2)+1; 10-1/x$ sin(x)^2+cos(x)^2;
The $10-1/x$ command ends with a $, so the result does not appear on the screen.
10-1/x$ 명령은 $로 끝나서 결과가 화면에 나타나지 않는다.
반응형
LIST