2021-07-13 17:28:08 +0200 | received badge | ● Famous Question (source) |
2020-11-07 20:13:22 +0200 | received badge | ● Notable Question (source) |
2020-01-31 01:39:51 +0200 | received badge | ● Popular Question (source) |
2019-03-08 08:03:38 +0200 | received badge | ● Good Question (source) |
2019-03-06 16:15:40 +0200 | received badge | ● Nice Question (source) |
2019-03-06 15:31:14 +0200 | received badge | ● Student (source) |
2019-03-06 10:13:19 +0200 | commented answer | Summation of simbolic variables Thank you. Changing alpha and area from vectors into functions did the trick. Sorry I can't upvote yet. |
2019-03-06 10:11:44 +0200 | received badge | ● Scholar (source) |
2019-03-06 10:11:39 +0200 | received badge | ● Editor (source) |
2019-03-05 16:46:13 +0200 | asked a question | Summation of simbolic variables Hi guys! I have this function on theta: $R_{x}(\theta) = R_{tx} + \cos \theta \cdot \left( f_{vp} + \sum_{i=1}^{n} \left(p S_i \sin^2 \alpha_i \right) \right) - \sin \theta \cdot \frac{1}{2} \sum_{i=1}^{n} \left(p S_i \sin 2\alpha_i \right)$ Since I cannot define an n-dimensional vector, I reduced n to 5, and wrote the following code down in SAGE: Upto this point everything seems to go fine. Then I try to define my function like this: And sage complains: Any ideas on what may be happening? And, Is there a way to make it work? Apparently, my question is similar to: Symbolic function that sums over variable sequence (sorry: my karma is insufficient to post links). Still, it is different in that I have two vectors of variables and need to define a computation using variables from both vectors. And I was trying to get it done in a different way. Thank you for your time. ============== EDIT: This made the trick: Thanks to @emmanuel-charpentier |
2019-03-05 15:09:24 +0200 | commented answer | Can I define an n-dimensional matrix? I have the same issue. I want to compute an expression, similar to: sum{K_i * sen(alpha_i)} where i goes from 1 to n, being n also a variable. |
2019-03-05 11:04:49 +0200 | commented answer | solving a physic problem using sage Great answer! Sorry I can't upvote it yet. I just created the account, and I need more points. |