Hi I am new to programming and the following task that my tutor want me to handle was a bit to hard to begin with. I hope someone can help me and I need the code in Matlab.
You are throwing darts at a circular dartboard (radius one half of a unit length) that are fixed at a square background (with the side one unit length). The dart hits this constellation at point $(x,y)$ that are a random variable. Want to use this idea to approximate the value of $\pi$.
I want to use the same idea to approximate $\int \limits _0 ^1 \sqrt[3]{1-x^3} {\rm d} x$.
Thanks in advance.

hint :
add one more line to get an estimation for $\pi$.