Get right-hand side of equation

Frithjof

I am calling the function mnewton(0=expr, alpha, %pi/4) to get the root of a rather complex equation expr.

%(i1)   mnewton(0=expr, alpha, %pi/4)
%(o1)   [alpha=0.678193754078621]

I need to apply another function to this result (e.g. sin) and then want to plot it. Just linking the functions does not work:

%(i2)   sin(mnewton(0=expr, alpha, %pi/4)[1])
%(o2)   sin(alpha=0.678193754078621)

This is because the expression alpha=0.678193754078621 is not a number. How do I convert alpha=0.678193754078621 to just 0.678193754078621?

I can't just copy the numerical value and add it manually as I want to plot this and my expr will have a different root for each y.

Frithjof

The function rhs(expr) does exactly that.

Check the manual for more information on this.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Can't get my sidebar on the right-hand side

How to get the first string's from the right hand side

Sympy right hand side of inequality

show the content on the right hand side

How to get a list of all drools variables defined in condition / left hand side from inside the consequence / right hand side?

How to show the right hand side layout/margin?

islice from right-hand side

Nullish coalescing operator (??) with right hand side 'undefined'

Is 'or' used on the right-hand-side of an assignment pythonic?

Use "at variable" ($@) on the right hand side of a rule in makefile

Verilog changing the size of right hand side

Enclose right hand side of expression in Swift language

Erlang: no match of right hand side value

Should null be checked on the left or right hand side

Slice Qstring from right hand side

Right-hand side of instanceof is not callable

Right hand side position of substring MySQL

Rewrite sympy equations to 0 right hand side

Using metric in right hand side of prometheus query

How can == be called if the right hand side is null?

Bootstrap Navbar causing spacing on the right hand side

Adding a UIBarButton in the bottom right hand side of the screen

possible unintended reference comparison to get a value comparison cast the right hand side to string

VUEJS - Why do I get: Uncaught TypeError: Right-hand side of 'instanceof'?

How to fix "partially applied constant on left hand side of code equation"?

BCE0051: Operator '<' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'

Hibernate Many-to-many association: left hand side collection contains elements, but right hand side collection is empty

Left Hand Side , Right Hand Side Compiler Errors in Dart / Flutter List

Is there a way to refer to the left hand side of an expression in the right hand side? i.e. after the =