-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for scalar multiplication by Symbol in waves module #27384
base: master
Are you sure you want to change the base?
Conversation
✅ Hi, I am the SymPy bot. I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.14. Click here to see the pull request description that was parsed.
|
@haru-44 could you possibly review this? |
@oscarlazoarjona would you like to review this? |
I'm sorry, but I'm not well-versed in this field, so I can only point out superficial matters. First, is the syntax of Lines 142 to 148 in fec342e
Next, you've modified it to allow |
The purpose of my pull request is to enable the multiplication of wave objects with instances of |
My question was whether it would be possible to use something like |
That does make sense. Let me try to implement it. |
The current implementation already supports floats, rationals and symbols. Checking only if TWave instance is multiplied by instance of AtomicExpr invites the need to seperately handle the cases for pi and E. |
References to other Issues or PRs
Brief description of what is fixed or changed
This PR implements multiplication operation of a transverse wave (TWave) with a symbolic scalar (Symbol) i.e amplitude scaling by a Symbol.
Example Usage:
Tests have also been added.
Other comments
Any feedback and suggestions on improving/enhancing this implementation are appreciated.
Release Notes