Ask Your Question

Afandi_MohAlsh's profile - activity

2026-01-05 18:09:39 +0200 received badge  Famous Question (source)
2025-07-14 17:58:56 +0200 received badge  Notable Question (source)
2025-02-26 18:58:37 +0200 received badge  Popular Question (source)
2025-02-11 22:12:49 +0200 received badge  Notable Question (source)
2024-11-24 09:45:00 +0200 marked best answer How to split a function into separate components (according to their variables)?

Hello there,

I had come across this question on the MATLAB Help Center website and was wondering if there was an equivalent answer in Sage......

if I defined an equation/function as below

x1, x2, y1, y2 = var("x1, x2, y1, y2")

f = 10*x1 + 20*x2 + 10*y1 + 10*y2

how can I split it as below ? :

f_x1 = 10*x1 ;
f_x2 = 20*x2 ; 
f_y1 = 10*y1 ; 
f_y2 = 20*y2 ;

I'd appreciate any suggestions.....

--Moh

2024-11-24 09:45:00 +0200 received badge  Scholar (source)
2024-11-24 09:43:25 +0200 commented answer How to split a function into separate components (according to their variables)?

Thank you........ I thought the operand() method identified only factors rather than general elements of an expression.

2024-11-22 10:43:20 +0200 received badge  Organizer (source)
2024-11-22 10:40:30 +0200 asked a question How to split a function into separate components (according to their variables)?

How to split a function into separate components (according to their variables)? Hello there, I had come across this qu

2024-10-12 09:38:00 +0200 received badge  Popular Question (source)
2024-10-02 20:13:03 +0200 commented answer Change of Coords. in Symbolic Comp.

Thank you for the suggestions. I did stumble on all these tutorials actually, but thought this was a trivial enough prob

2024-10-02 19:48:47 +0200 received badge  Editor (source)
2024-10-02 19:48:47 +0200 edited question Change of Coords. in Symbolic Comp.

Change of Coords. in Symbolic Comp. I'd like to change cartesian symbols to spherical ones through a neat and simple met

2024-10-02 19:44:46 +0200 received badge  Supporter (source)
2024-10-02 18:40:03 +0200 received badge  Student (source)
2024-10-01 23:34:56 +0200 asked a question Change of Coords. in Symbolic Comp.

Change of Coords. in Symbolic Comp. I'd like to change cartesian symbols to spherical ones through a neat and simple met