Timeline for Comparing Factors of Order Exp[I*x]
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 7, 2020 at 15:31 | comment | added | Carlos Villeda | You are awesome. | |
Apr 6, 2020 at 19:41 | comment | added | Roman |
@CarlosVilleda see update using Exponent .
|
|
Apr 6, 2020 at 19:40 | history | edited | Roman | CC BY-SA 4.0 |
added 360 characters in body
|
Apr 6, 2020 at 14:24 | comment | added | Carlos Villeda | I can make a separate question if you would like so you can get the credit for the answer. | |
Apr 6, 2020 at 14:22 | comment | added | Carlos Villeda |
One more question, I actually ran into a problem when calculating terms that have E^(0 I x) . In my original expression, I have terms like g2''[y] E^(0 I x) where I have to use HoldForm@ to keep the E^(0 I x) otherwise Mathematica evaluates this to 1. When comparing terms like -f1[y] I E^(I x) and g2''[y] E^(0 I x) , the function MaximalBy[] returns g2''[y] E^(0 I x) and MinimalBy[] returns -f1[y] I E^(I x) where it should return the opposite. I have tried ReleaseHold[] in many places to see how it would affect the output but no luck.
|
|
Apr 6, 2020 at 7:14 | comment | added | Roman |
Your analysis is correct. # /. _. E^(b_. x) -> b/I & is an anonymous function and the & sign marks the end of the function. This function takes something of the form $a e^{b x}$ and replaces it by $b/i$.
|
|
Apr 6, 2020 at 2:39 | comment | added | Carlos Villeda |
Thank you, that worked perfectly. If I may ask what you did there with the # /. _. in the 'MaximalBy[] function? I have tried looking around and from what I can decipher is that # would mean you are taking the items in the list, /. is replace, and _. is blank argument. So you are taking the item in the list and replacing the f1'[y] I E^(I x) with whatever is in front of the x by b/I and then the MaximalBy[] returns the item in the lisst which has the highest value of all these replacements. Is this correct? The only thing I couldn't decipher was what the & does at the end.
|
|
Apr 6, 2020 at 2:15 | vote | accept | Carlos Villeda | ||
Apr 2, 2020 at 17:20 | history | edited | Roman | CC BY-SA 4.0 |
added 222 characters in body
|
Apr 2, 2020 at 15:46 | history | answered | Roman | CC BY-SA 4.0 |