Multivariable function using two list

I have a function it uses two list of values. the shape of x and y list gives a triangle.

xlist={-1., -0.447214, 0.447214, 1., -1., -0.333333, 0.447214, -1.,-0.447214, -1.}

ylist={-1., -1., -1., -1., -0.447214, -0.333333, -0.447214, 0.447214,0.447214, 1.}

function f=(1 + 2x +5) (3 + 5 y)

I want to plot function in 3d with xlist on x axis ylist in y axis and see the funtion using this values in plot

I usually plot with x and y “min max range” with function, it gives a rectangle domain style shape as expected.

In this plot it will seem like a triangle bended carpet shape

surface.png

Thanks a lot regards

plot.nb (5.72 KB)

Define your function:

f[x_, y_] := (1 + 2 x + 5) (3 + 5 y)

You might want to use ListPlot3D and so we want to get our data in the proper form. We can do that with MapThread:

MapThread[{##, f[##]} &, {ksilist, etalist}]

So, putting it all together:

ListPlot3D[MapThread[{##, f[##]} &, {ksilist, etalist}]]

trianglecarpet.bmp (1.21 MB)

Thanks so much
Eric

Best regards,