Solving Numerically the System: x^2+y^2=1 and xy=1/2

  • Thread starter Thread starter wuyaosi
  • Start date Start date
  • Tags Tags
    System
AI Thread Summary
A user is seeking MATLAB code to numerically solve the system of equations x^2 + y^2 = 1 and xy = 1/2. A suggestion is made to solve the system exactly by substituting y with 1/(2x), leading to a quadratic equation in terms of z (where z = x^2). This approach simplifies the problem, allowing for exact solutions rather than numerical methods. The discussion emphasizes both numerical and exact solving techniques for the given equations.
wuyaosi
Messages
1
Reaction score
0
Hi,

I am looking for the code of Matlab which can led me to solve numerically this system
x^2+y^2=1
xy= 1/2


I want to write a programm which can be able to solve numerically the above syatem


Thanks in advance
 
Technology news on Phys.org
You can solve it exactly. If you don't see the answer by inspection, try y=1/(2x), so x^2 + 1/(4x^2) = 1, so z^2 - z + 1/4 = 0, where z = x^2.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top