It means it has nothing to do with sqrt or exp?????
Zohreh Karimzadeh
*https://www.researchgate.net/profile/Zohreh-Karimzadeh*
<https://www.researchgate.net/profile/Zohreh-Karimzadeh>
Skype Name 49a52224a8b6b38b
Twitter Account @zohrehkarimzad1
z.karimza...@gmail.com
+989102116325
((((((((((((((((Value Water)))))))))))))))


On Wed, Aug 17, 2022 at 9:30 PM Aaron Meurer <asmeu...@gmail.com> wrote:

> This isn't the case in your example code, but sometimes what can happen is
> that you have a symbol x with some assumptions, and if you use
> lambdify('x', ...) it will create a symbol x with no assumptions, which
> SymPy will treat as a different symbol. The best thing to do is to use
>
> x = symbols('x', ...)
>
> and always use x for the symbol, instead of the string 'x'.
>
> Aaron Meurer
>
> On Wed, Aug 17, 2022 at 7:38 AM Zohreh Karimzadeh <z.karimza...@gmail.com>
> wrote:
>
>> Dear sympy group
>> Thanks for your sympy.
>>
>> I am working on a code, after creating my big expression using sympy it
>> includes sqrt.
>>
>> I need to lambdify my expression to make it consistent with numpy and
>> other suffs.
>>
>> expr =10 * sp.sqrt(sp.symbols('x'))
>>
>> model_func = sp.lambdify('x', expr)
>>
>> But I found my expression after lambdifying becomes somethings like this:
>>
>> 10*sqrt(x)
>>
>> while I need :
>>
>> 10*numpy.sqrt(x)
>>
>> Could possibly let me know how get sqrt to work with numpy?
>>
>> Regards,
>>
>> Zohreh
>>
>>
>>
>>
>> --
>> 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/1f0b313f-31c5-402e-991e-142a556016f4n%40googlegroups.com
>> <https://groups.google.com/d/msgid/sympy/1f0b313f-31c5-402e-991e-142a556016f4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAKgW%3D6KsfT-W-Q1A7y1ppTP6xgF4Fucwxm7wZ0Y8WQX7hsMD4Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/sympy/CAKgW%3D6KsfT-W-Q1A7y1ppTP6xgF4Fucwxm7wZ0Y8WQX7hsMD4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2B1XYLPg5Raw90eDgaR5SkD5KispsSMM9TFhMuo3trdsg8K8Dw%40mail.gmail.com.

Reply via email to