[Scilab-users] Triple integral (int3d) query

classic Classic list List threaded Threaded
3 messages Options
arctica1963 arctica1963
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Triple integral (int3d) query

Hello all,

I have worked out a simpler input for 2D integration with a function that
calls int2d:

function [Integral, error]=Integral_2d(xmin,xmax,ymin,ymax,f)
    X=[xmin xmax xmax; xmin xmax xmin]'
    Y=[ymin ymin ymax; ymin ymax ymax]'
    [Integral, error]=int2d(X,Y,f)
endfunction

This simplifies the issue for triangulation and only needs the x, y limits
and function to integrate; tested with the int2d example and works fine.

Is it feasible to use the same methodology for int3d - triple integral - for
defining the tetrahedron vertices? Really all one wants to do is enter the
limits of x, y and z, with a function f(x,y,z).

Any suggestions would be welcome

Lester



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: Triple integral (int3d) query

Hello Lester,

Le 01/01/2021 à 09:16, arctica1963 a écrit :
Hello all,

I have worked out a simpler input for 2D integration with a function that
calls int2d:

function [Integral, error]=Integral_2d(xmin,xmax,ymin,ymax,f)
    X=[xmin xmax xmax; xmin xmax xmin]'
    Y=[ymin ymin ymax; ymin ymax ymax]'
    [Integral, error]=int2d(X,Y,f)
endfunction

This simplifies the issue for triangulation and only needs the x, y limits
and function to integrate; tested with the int2d example and works fine.

Is it feasible to use the same methodology for int3d - triple integral - for
defining the tetrahedron vertices? Really all one wants to do is enter the
limits of x, y and z, with a function f(x,y,z).

Any suggestions would be welcome


With Scilab 6.0.2 you can install the CGLAB toolbox atomsInstall("cglab"). Then its delaunay_3() function will yield tetrahedrons required by int3d(). An intermediate step might be required to specify tetrahedrons in the way that int3d() expects.

Best wishes and Happy New Year 2021 to you, and to all Scilab users!

Samuel


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
arctica1963 arctica1963
Reply | Threaded
Open this post in threaded view
|

Re: Triple integral (int3d) query

Hi Samuel,

Many thanks for the suggestion. Happy New Year to you too.

Kind regards
Lester



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users