C++ Help
|
2015-10-12, 19:37
Post: #6
|
|||||||
|
|||||||
RE: C++ Help
It prints x1=NAN (not a number) because y1 is negative and sqrt() function can not calculate squareroot of negative numbers.
In first post you wrote: Quote:ax4 +bx2+c=0I assume you meant: a(x^4) +b(x^2)+c=0 ? With the input from your screenshot: a=1 b=4 c=1 The graph looks like this: => This function has no solution. Try entering some other values, plot the graph, and compare, might be that your program is already correct? |
|||||||
|
|||||||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RE: C++ Help - Barney - 2015-10-12, 16:12
RE: C++ Help - FolloweR - 2015-10-12, 16:25
RE: C++ Help - Gutholz - 2015-10-12, 16:56
RE: C++ Help - FolloweR - 2015-10-12, 17:44
RE: C++ Help - Gutholz - 2015-10-12 19:37
RE: C++ Help - FolloweR - 2015-10-13, 16:07
|
User(s) browsing this thread: 2 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group