C++ - Array Math -


i trying equation c++

root[0] = root [0] - f(root[0])/ root[0] - root[1] * root[0] - root[2] * root[0] - root[3] 

in examples there 3, changes user input.

the program trying solve polynomial equations enough information.

i have got top of equation work here came with:

complex<double> top, bottom; top = (complex<double>)coefficientarray[1] * (pow (rootarray[0], degree)); rootarray[0] = rootarray[0] - (top/bottom); 

solving linear equations alot faster using:

  1. the coefficient matrix
  2. an unknown variable matrix (to solve)
  3. the answer matrix

to find roots of higher grade equations -with approximation error- should use the
newton-raphson method.

enter image description here


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -