substituting constant into slope equation

Messages in english

Modérateur : xcasadmin

XcasEngGuy
Messages : 160
Inscription : mer. janv. 13, 2010 3:20 pm

substituting constant into slope equation

Message par XcasEngGuy » ven. nov. 15, 2024 8:20 pm

I noticed something interesting. I work a lot with integrating differential equations for bending of beams. After finding the equations for the slope and deflection of a beam, I need to calculate those values at a point on the beam. I have attached the .xws file and the pdf I can create from the Latex produced by Xcas. Note that when I substitute in a constant into the slope equation, the left hand side becomes y', which is perfect and I think is a new feature you have created. Note that if I apply the normal() command to the slope equation the left hand side becomes 0. If I "recreate" the slope equation by setting the left hand side equal to the right hand side, the normal() command works as I would like. I can't figure out what the difference is...

Matt
xcas example.zip
(17.17 Kio) Téléchargé 298 fois

parisse
Messages : 5879
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: substituting constant into slope equation

Message par parisse » sam. nov. 16, 2024 8:31 am

This issue is related to the fact that x has two different meanings in the same expression: it is the symbolic derivation variable in diff(y(x),x) and it is given a value in the substitution x=L/2.
That's the reason why there is a function_diff command, if you replace diff(y(x),x) by function_diff(y)(x), then x will have only one meaning.

XcasEngGuy
Messages : 160
Inscription : mer. janv. 13, 2010 3:20 pm

Re: substituting constant into slope equation

Message par XcasEngGuy » sam. nov. 16, 2024 6:56 pm

Thanks, I'll try that.

XcasEngGuy
Messages : 160
Inscription : mer. janv. 13, 2010 3:20 pm

Re: substituting constant into slope equation

Message par XcasEngGuy » mar. nov. 19, 2024 5:27 pm

I am still curious about what's shown in eq18 through eq22 in my example. In eq19 I "recreate" the first equation in eq18 by setting the left hand side equal to the right hand side. After that recreation the normal command functions as I like (eq20 and eq22). However, normal(eq18) does not even though eq18 and eq19 appear identical.

Thank you for your help.

Répondre