Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя i_love_downvotes

Автор i_love_downvotes, история, 4 года назад, По-английски

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!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

Автор i_love_downvotes, история, 4 года назад, По-английски

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!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится