Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me on equation in assembler

Status
Not open for further replies.

Vlad.

Full Member level 3
Joined
Jun 4, 2012
Messages
179
Helped
3
Reputation
6
Reaction score
4
Trophy points
1,298
Location
Bucharest/Romania
Activity points
2,567
Hey, can somenbody help with a program in assembler to calculate ecuation 2(ax2+bx+c=0) ? and i want the program to read values of a,b,c from keyboard.thanks
 

bassa

Super Moderator
Staff member
Joined
Jul 15, 2007
Messages
1,813
Helped
191
Reputation
402
Reaction score
154
Trophy points
1,353
Location
Sri Lanka
Activity points
10,539
Can you specify the target whether the 8051 or PIC or x86,
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,376
Are you attempting to solve for the roots of a Quadratic equation?

Of the form:

ax² + bx + c = 0

If so, you will need to employ the Quadratic Formula or a similar numerical technique of root calculation:

8958962500_1353820771.png


Quadratic equation

Root-finding algorithm

Newton's method


The best approach to solve for the roots depends largely on the target processor/microcontroller.

Therefore answering Bassa's question is important.

BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top