Question: labeling curves/contours on contourplots

Hi, 

Say if i have the following how can I label the contours with the value of f that each of the isovalue contour represent?

> n := 4; a := [1, x, 4, y];
                               4
                          [1, x, 4, y]

> f := a[1]^4+2*a[2]^3-3*a[3]^2+10*a[4];
                                3      
                       -47 + 2 x  + 10 y

> contourplot(f, x = 0 .. 4, y = 0 .. 10, filledregions = true, coloring = [yellow, red], legendstyle = [location = right]);
 

Many thanks!

Charles

Please Wait...