• Incidentally, I've started programming haskell for the same reason :D
    Now I'm in love with it!

  • I suggest you to read junit documentation.

  • Thanks! nice points!

    1. You shold now when and how evaluate the poly in order to find the root. This is all about the task essentially.
    2. The mention of epsilon is implicit in the description when it sais: "[...]the point x such that evaluatePoly(x) is close to zero. [...]"
      Anyway I Will add something more precise to the description about it. thanks!
  • Im gonna check it tomorrow. Busy times sorry :( In which language are you trying to submit?

  • I m gonna Add a test case fOr it.

  • This comment is hidden because it contains spoiler information about the solution

  • This comment is hidden because it contains spoiler information about the solution

  • This comment is hidden because it contains spoiler information about the solution

  • Good point.
    I will fix it

  • Numerical precision could be an issue. BigDecimal should be used as dataType, but the aim of this kata is not to stress on the precision, but on the algothmics of finding a root.

    Just round your solution ^^

  • There already is a link on wilipedia if someone does not know what "eval" means for polynomials.

  • Please stop commenting this way.
    You should be able to complete the kata without worrying of precision issues and using plain double variables.

    By the way, try it yourself to calculate (1-0.8)/2 using double variables and show yourself this big deviation.

    1. wrong or right poly? what do you mean exactly with a poly like this pass the test? (polynomial guess???)
      2)This kata is not meant to be a full academic work on numerical analysis, so normal floating number are enough and errors are taken in consideration in user/final test cases, so there should be no problems in submitting the solution and you should ALWAYS get the green screen.
      This kata is not focused on precision of the solution that you are able to provide.
    2. given that, provide me an example of code that does not work with my test cases and i'll fix it immediately.

    Thanks for the contribution.

  • It is Already explicitely explained in the subsequent line.

  • Loading more items...