Why solve() is not solving?
|
07-07-2016, 01:22 PM
Post: #1
|
|||
|
|||
Why solve() is not solving? | |||
07-07-2016, 02:34 PM
Post: #2
|
|||
|
|||
RE: Why solve() is not solving?
Maybe, because the Gamma function isn't a function, that can be described analytical. So you can only solve witha numreical algorithm?
|
|||
07-07-2016, 02:39 PM
Post: #3
|
|||
|
|||
RE: Why solve() is not solving?
I tried to use fsolve() with no success. Now i've re-wrote the function using 2*pi*f instead of omega and both solve and fsolve converge to a solution.
|
|||
07-07-2016, 04:19 PM
Post: #4
|
|||
|
|||
RE: Why solve() is not solving?
(07-07-2016 01:22 PM)tiamattia Wrote: I'm trying to solve a complex equation. This is the function i defined "gamma": Can you show how you defined it? It should work provided your definition is correct. TW Although I work for HP, the views and opinions I post here are my own. |
|||
07-07-2016, 05:11 PM
Post: #5
|
|||
|
|||
RE: Why solve() is not solving? | |||
07-07-2016, 08:31 PM
Post: #6
|
|||
|
|||
RE: Why solve() is not solving?
Did you just replace omega by 2*pi*f or make any other changes?
Note, you can just copy/paste your text directly from the emulator if you are using that. Makes it easier rather then pictures everyone has to type and hope they didn't make a mistake. TW Although I work for HP, the views and opinions I post here are my own. |
|||
07-07-2016, 10:22 PM
Post: #7
|
|||
|
|||
RE: Why solve() is not solving?
Yes, this is what i'm executing:
Code:
(I'm using the character sigma (lower case) σ, that is an alias of the character sigma (upper case) ∑ which is the summation function, as a variable. I don't think this is the problem beacuse i'm using it in both situations...) |
|||
07-08-2016, 07:28 AM
Post: #8
|
|||
|
|||
RE: Why solve() is not solving?
There is an invalid char in your definition (charcode E003). This makes the equation a symbolic equation depending on this variable (i.e. gamma(x,1,1,1) depends on x and this variable),
|
|||
07-08-2016, 12:01 PM
Post: #9
|
|||
|
|||
RE: Why solve() is not solving?
That's i, the imaginary unit. It is defined it in the private user area of the calc charachter map.
|
|||
07-08-2016, 02:00 PM
Post: #10
|
|||
|
|||
RE: Why solve() is not solving?
Did you type purge(x) before the solve and fsolve commands? The reason I ask is when I can cut and pasted your equations into the emulator I obtained the expected results: {1.00000005156}. When I typed x:=3 first I got empty brackets: [].
-road |
|||
07-08-2016, 04:56 PM
(This post was last modified: 07-08-2016 04:56 PM by tiamattia.)
Post: #11
|
|||
|
|||
RE: Why solve() is not solving?
I tried, still not solving
|
|||
07-09-2016, 07:58 AM
Post: #12
|
|||
|
|||
RE: Why solve() is not solving?
I checked with the emulator and got 1.0.
|
|||
07-09-2016, 12:48 PM
Post: #13
|
|||
|
|||
RE: Why solve() is not solving? | |||
07-09-2016, 01:57 PM
Post: #14
|
|||
|
|||
RE: Why solve() is not solving?
No, i haven't tried yet. I will try as soos as I can.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)