Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone
formula

(x - a)^2 + (mx + c - b)^2 = r^2


Note: where ^ means power


can anyone tell me what is value of x by evaluating above formaula


Thanks in Advance
Posted
Updated 3-Oct-10 21:27pm
v2
Comments
Ankur\m/ 4-Oct-10 1:47am    
YES!! But tell me what are the values of 'a, b, c, m, r' first. :P
Sauro Viti 4-Oct-10 2:51am    
Yes, I can, but I will not! This is a simple 2nd degree equation: why don't you do your homework by yourself?

Hi
I am assuming the programming language as C#
You can use Math.Pow() Function to accomplish this in C#. You can refer [this.]


You can convert the equation to result with
Math.Pow((x - a), 2) + Math.Pow((mx + c - b), 2) = Math.Pow(r,2);


:) But your equation seems like it should be ended with "Hence Proof"
 
Share this answer
 
v3
Comments
Sauro Viti 4-Oct-10 2:50am    
Math.Sqrt compute the square root, then Math.Sqrt(x - a) is not the same than Math.Pow((x - a), 2)
Baji Jabbar 4-Oct-10 2:52am    
Sorry my mistake and thanks for pointing it.
Khaniya 4-Oct-10 5:19am    
Sauro Viti
Thanks for your comment but this is not my homework
As you probably know, with a bit of manipulation, your 'formula' maybe written
A x^2 + B x + C=0


That is a canonical quadratic equation[^], having a straightforward solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900