티스토리 뷰

Maxima

Assign values

skyground21 2023. 6. 28. 08:43

Maxima uses ':' to assign values to a variable ('a : 3;'), not '=' as most programming languages do.
This allows, that a mathematical equation can be assigned to a variable, e.g.
 eq1:3*x=4;
which may then be solved for x with
solve(eq1,x);

 

Maxima는 대부분의 프로그래밍 언어처럼 '='가 아닌 ':'를 사용하여 변수('a : 3;')에 값을 할당합니다.
이를 통해 수학 방정식을 변수에 할당할 수 있습니다.
 eq1:3*x=4;
예를 들어, x에 대해
solve(eq1,x);

 

 

출처 : Tip of the day

반응형
LIST

'Maxima' 카테고리의 다른 글

% and %on  (0) 2023.06.29
fonts change  (0) 2023.06.28
Shift+Enter and Enter  (0) 2023.06.26
multiple commands on a single line  (0) 2023.06.26
Maxima 명령의 실행  (0) 2023.06.26