Extract complete argument and function name(s) from the Expression, (standard mathematical functions only) MAPLE

前端 未结 3 495
谎友^
谎友^ 2021-01-29 09:20

For expressions like

a1 := sin(1+a/b);
a2 := log(1+ a*b);
a3 := abs(a^2+b);

how can I get expressions of respective functions. For example

3条回答
  •  耶瑟儿~
    2021-01-29 09:48

    You can use the op() command, which breaks down expressions into their operands. For instance:

    f := sin(1+a/b);
    g := op(0,f); # sin
    h := op(1,f); # 1+a/b
    

提交回复
热议问题