Jonathan,

Hi there and thanks for your assistance.

Is this the behavior I am trying to get? Quite possibly. Having trouble 
installing "algebra_with_sympy". Do I need to be admin? My installation 
attempt is as follows:

pip install -U Algebra-with-SymPy
... lots of stuff, followed finally by
ERROR: Could not install packages due to an OSError: [WinError 5] Access is 
denied: 
'C:\\Users\\python\\AppData\\Local\\Temp\\pip-uninstall-pns2p03y\\jupyter-kernel.exe'
Consider using the `--user` option or check the permissions.

Thanks again,
Andre



On Tuesday, April 19, 2022 at 2:16:25 PM UTC+1 gu...@uwosh.edu wrote:

> Is this the behavior you are trying to get?
>
>
> >>> from algebra_with_sympy import *
> >>> algwsym_config.output.human_text=True
> >>> var('psi k x')
> (psi, k, x)
> >>> eq1=Eqn(psi, exp(I*k*x))
> >>> eq1
> psi = exp(I*k*x)
> >>> eq2 =diff(eq1,x)
> >>> eq2
> Derivative(psi, x) = I*k*exp(I*k*x)
> >>> eq2.subs({exp(I*k*x):psi})
> Derivative(psi, x) = I*k*psi
>
> Jonathan
> On Tuesday, April 19, 2022 at 7:50:54 AM UTC-5 andre...@gmail.com wrote:
>
>> When I differentiate the function
>>
>> ψ = exp(I*(k*x))
>>
>> I get
>>
>> i*k*exp(I*(k*x)).    [which is  i*k*ψ] 
>>
>> Is there a way to get exp(I*(k*x)) substituted with  ψ, in order to get 
>> the shorter expression i*k*ψ ?
>>
>> Thanks,
>> André
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/d426ebbc-d87b-4482-8630-9a9697664a28n%40googlegroups.com.

Reply via email to