Mathcad: differentiating with indexes

1 reply · 7K views · last reply
Uku
Messages
79
Reaction score
0
Hello!

The picture says a thousand words:
http://www.hot.ee/jaaniussikesed/v6rrand.jpg

In the last member under the square root, there is the error. For some reason I am not able to differentiate with an array index, ts1 is a single column 5 row matrix. How to solve this? The error says "a name is required here".

Thanks,
U.
 
Last edited by a moderator:
Uku said:
Hello!

The picture says a thousand words:
http://www.hot.ee/jaaniussikesed/v6rrand.jpg

In the last member under the square root, there is the error. For some reason I am not able to differentiate with an array index, ts1 is a single column 5 row matrix. How to solve this? The error says "a name is required here".

Thanks,
U.

Try assigning ts1[i to a variable, t say, and differentiate that instead.

Mathcad worksheet snippet: for i ← 1..5, t ← ts1_i, then retval_i ← square root of (|...| + [d/dt (I(m_B, d_s, h, t) · i · u · Atl_i)]^2), with the outer expression raised to the power 2.
 
Attachments
  • Mathcad worksheet: for i ← 1..5, t ← ts1_i, then retval_i ← square root of (sum over ... + [d/dt (I(m_B, d_s, h, t) · i · u · Atl_i)]^2).
    phys - 12 10 04 differentiation 01.jpg
    4.5 KB · Views: 1,570
Last edited by a moderator: