Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.3K Views
|
6 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Solve system of equations with NSolve?

Posted 9 years ago
POSTED BY: Eft Rsd
6 Replies

The documentation on DSolve says that "NSolve deals primarily with linear and polynomial equations." You may try FindRoot if your problem is mainly numerical.

POSTED BY: Gianluca Gorni
Posted 9 years ago

I have edited the question and added details of the problem. I really hope to get help come over it.

eft

POSTED BY: Eft Rsd
Posted 9 years ago

well, I have to apologise for the ill expressed question. I chopped half the equation while editing.. I have been trying to add the full equations using CodeSample with no successful so far..Would you kindly explain how I should use it?

eft

POSTED BY: Eft Rsd

Hi,

this here is a good starting point. The moderation team explain how to post and format everything correctly:

http://community.wolfram.com/groups/-/m/t/270507

Cheers,

Marco

POSTED BY: Marco Thiel

Yes, indeed some parenthesis are missing. If corrected/added (hopefully as intended in the OP it appears to work.

NSolve[(-0.38148299350912984 + 
      0.09490089588967025 Cos[x])^2 + (-0.8335932784285498 + 
      0.09490089588967025 Cos[y] Sin[x])^2 + (-0.05829052041804752 + 
      0.09490089588967025 Sin[x] Sin[y])^2 == 0.753964, {x, y}]

The solution is somewhat long and does not seem to contribute to this. Actually, I suppose that the thread will be closed because the question is only caused by a simple typo.

Anyway, here's a representation of the solutions:

ContourPlot[(-0.38148299350912984 + 
      0.09490089588967025 Cos[x])^2 + (-0.8335932784285498 + 
      0.09490089588967025 Cos[y] Sin[x])^2 + (-0.05829052041804752 + 
      0.09490089588967025 Sin[x] Sin[y])^2 == 0.753964, {x, -10, 10}, {y, -15, 15}, PlotPoints -> 50]

enter image description here

Cheers,

Marco

PS: Note that Mathematica suggests to use Reduce instead of NSolve. You should consider to follow that advice.

POSTED BY: Marco Thiel
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard