Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square.
...
5年以上 前
解決済み
Find the area of the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ*
<<http://imgfz.com/i/3wzCeAT.png>>
...
5年以上 前
解決済み
Get the area of the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*.
<<http://imgfz.com/i/UzgCJut.png>>
Gi...
Areas
Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...
5年以上 前
解決済み
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes)
Example:
input = [2 1] % 2x+1
output = [1 1 1]...
5年以上 前
解決済み
Say type of roots in quadratic equation
Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...
5年以上 前
解決済み
Divide polynomial p1 by p2.
Divide polynomial p1 by p2 given as vectors. Return result q and r vectors which corresponds the quotient and remainder of divis...
5年以上 前
解決済み
deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients.
* In this example, the polynimial is 1*x^3...
5年以上 前
解決済み
Guess the Coefficients!
Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients.
For example:
...
5年以上 前
解決済み
Polynomial division
Divide a polynomial u by polynomial v and return the quotients only.
Example:
u = x^4+3*x^3+5*x+3
v = x^2+1
Answer:
...
5年以上 前
解決済み
Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.