Monomial2D example 1
This example shows the usage of [[Monomial2D_]] class.
Modules and classes
- [[Monomial2D_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(Monomial2D_) :: obj
Initiate the object.
obj=Monomial2D( n1=0, n2=0, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^0*y^0
obj=Monomial2D( n1=1, n2=0, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^1*y^0
obj=Monomial2D( n1=0, n2=1, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^0*y^1
obj=Monomial2D( n1=1, n2=1, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^1*y^1
obj=Monomial2D( n1=2, n2=1, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^2*y^1
END PROGRAM main