Extracting an expression matching a pattern from a large expression

后端 未结 3 717
臣服心动
臣服心动 2021-02-04 12:44

I have a Mathematica expression that contains a single square root, schematically

expr = a / (b + Sqrt[c]);

where a,b

3条回答
  •  长发绾君心
    2021-02-04 13:23

    I await a few examples, but in the meantime, try:

    Cases[expr, x_^(1/2 | -1/2) :> x, Infinity]
    

    The standard internal form for Sqrt(x) is Power[x, 1/2].

提交回复
热议问题