hi to everyone!i need help for my assignment in our numerical analysis.our instructor asked us to solve a linear equation using turbo c language.Can anyone help me with this problem,a simple sample code will do.Ex.f(x)=2x^3+x^2
loimarie 0 Newbie Poster
Recommended Answers
Jump to Post2x is multiplication; you can do it with
2 * x
. The ^ operator exists in C, but not in the way that formulae use it. It means bitwise exclusive-OR instead of exponentiation. Turbo C supports thepow()
function though, so you can use that:
Jump to PostFirst of all, do you understand the maths involved?
By that, I mean can you do this on paper. If you can't, then you first need maths help, not programming help.
If you can do it on paper, try transferring that to a program and post what you …
Jump to Postother than the fact that you're confusing linear functions with linear equations, a huge problem can be located in the title of your thread:
"Turbo C"
throw that crap away, now, and get a real compiler. and if you have an instructor who insists you use Turbo C, …
All 10 Replies
Radical Edward 301 Posting Pro
Salem 5,265 Posting Sage
Clockowl 56 Posting Whiz
loimarie 0 Newbie Poster
Clockowl 56 Posting Whiz
loimarie 0 Newbie Poster
ArkM 1,090 Postaholic
drea20 0 Newbie Poster
ArkM 1,090 Postaholic
jephthah 1,888 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.