symbolic variables and +=

asked 2023-02-15 23:48:21 +0100

username0808 gravatar image

When I substitute symbolic variables into a function, the sum notation "+=" does not allow them because it only accepts reals. I need to substitute symbolic variables into the function. Is there any workaround? (I have tried sum(), but that breaks my function.)

Here's my attempt to sub in symbolic variables:

x1,x2 = var('x1 x2')

A2 = Afunction(2, [x1,x2])

edit retag flag offensive close merge delete


Please define Afunction.

Max Alekseyev gravatar imageMax Alekseyev ( 2023-02-22 17:01:15 +0100 )edit