Group Abstract Group Abstract

Message Boards Message Boards

Solving system of equations with Solve takes too long?

12 Replies

Dear Werner, Thank you very much for all your work and great explanations. I have been working on it for the last couple of days, and your help was very useful.

First of all thanks a lot for the reformulation of my code in the "first attempt", as you have noticed I am very new to this language, and it helped me a lot to learn.

It is true that I consider y as a fixed general parameter and you are totally right, that the first derivatives are the same and this simplifies the code. The conditions that pn must be a real positive is totally fine by assumption (and lambda different from one too).

For your second attempt, I think fixing pn and lambda in a first step should be a godd way to proceed even if it not working yet and I think I will continue on this way, 1) simplifying the problem (I will try to remove one equation by imposing p3=l3=0), 2) trying to show that this second system - where we replace lambda and pn afterwards is equivalent to the first one. I will certainly let you know here if this way I manage to solve it.

I also wanted to tell that one of the reasons I wanted to solve this problem was to find whether their actually is a solution (and I have the intuition there might not be).

Again, thanks a lot!

Posted 5 years ago

I'm glad that I could help a little.

POSTED BY: Werner Geiger
Posted 5 years ago

Strange, Olimpia, that you don't answer. I would like to hear if I could help you a little.

POSTED BY: Werner Geiger
Posted 5 years ago
POSTED BY: Werner Geiger

So, then be so kind and show the corrected code. But these equations look complicated.

POSTED BY: Hans Dolhaine

I have edited my post to correct for your observations, thank you.

And what is

pP

it is nowhere defined

POSTED BY: Hans Dolhaine

Another typo, I am sorry. I have corrected it.

Are you sure it is F(lambda) instead of F[lambda]? If you define c1 = RandomReal[3,1] you get a list instead of a number: is that really what you want? I would simply write c1 = RandomReal[3].

POSTED BY: Gianluca Gorni

You are right about F[lambda], thank you. About the RandomReal[3,1] I guess you are right too, even if I am not sure it is problematic to have a list of one element instead of a number. I have corrected my post anyway, for both of your remarks.

I think, this

2=(P2/pn)^(-1/2)

is a typo. Shouldn't it be

s2=(P2/pn)^(-1/2)
POSTED BY: Hans Dolhaine

Yes, thank you, I have edited my post

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard