i_love_downvotes's blog

By i_love_downvotes, history, 4 years ago, In English

Suppose we have a function f(x)=0, and we have to find all the real roots of it.

For example, we have some function a.x^4 + b.x^3 + c.x^2 + d.x^1 + e = 0, assume each term can have any coefficient of their own.

We have to find all real values of x satisfying it.

How can we find it? Any help would be appreciated!

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

By i_love_downvotes, history, 4 years ago, In English

https://cp-algorithms.com/geometry/point-in-convex-polygon.html

In above link, the code for checking whether a point is inside a convex polygon is flawed. I tested on some examples, it gave wrong answer.

Can someone point out the mistake and thus request the author to correct it!

Full text and comments »

  • Vote: I like it
  • +15
  • Vote: I do not like it