cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Derivative a scalar

bharðarson
1-Newbie

Derivative a scalar

Hello.

I'm trying to derive a formula which is a function of six values. Four of them are just constants but the other two are vectors of three values.

d = constant

L = constant

T = [T1, T2, T3]

T_inf = constant

E = [E1, E2, E3]

R = constant

I want to get three values from the dT_i. Thanks..

primehelp.png

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:bharðarson)

You can't take the derivative w.r.t a subscripted variable, or a variable that is a vector. The easiest solution is to first create a function, and then apply that to the vector variable.

View solution in original post

10 REPLIES 10
RichardJ
19-Tanzanite
(To:bharðarson)

It's hard to debug a picture. Try using the vectorize operator over the derivative of the function. If that doesn't work, please post the worksheet.

Hello Richard.

Thanks for your reply. I couldn't figure this out so here is the file.

I hope someone can help.

BTW. I'm sorry for posting in wrong section. Though I was located in the "Calculus & Derivatives" when posted.

RichardJ
19-Tanzanite
(To:bharðarson)

You can't take the derivative w.r.t a subscripted variable, or a variable that is a vector. The easiest solution is to first create a function, and then apply that to the vector variable.

I can't open the file but I tried that and it works perfectly.

Thanks.

RichardJ
19-Tanzanite
(To:bharðarson)

It was created in Prime 3.0. Are you using an earlier version? If so, you should state that in any future questions. Prime 3.0 can't save back to earlier versions, but I would have posted a picture.

I'm sorry. I should've mentioned my version. I'm using Prime 2.0.

But deriving the equation before giving the values does the trick.

Please find a PDF and XPS version of this worksheet in attachment.

Thanks for the pdf. It's not like what my solution was.

But this doesn't work for me... MathCAD says it doesn't recognise the values. 😕

It shows error on d, but it is also on the other values.

StillError.png

RichardJ
19-Tanzanite
(To:bharðarson)

Delete the inline evaluation on the right hand side of the function definition.

Doh, I can't belive I didn't notice that. Thanks!

Now everything works like it should.

Instead of he evaluation on the right I use -> to see the derived equation.NoError.png

Top Tags