Skip to main content

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.

f(x,y)=1f(x,y)=1

  obj=Monomial2D( n1=0, n2=0, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^0*y^0

f(x,y)=xf(x,y)=x

  obj=Monomial2D( n1=1, n2=0, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^1*y^0

f(x,y)=yf(x,y)=y

  obj=Monomial2D( n1=0, n2=1, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^0*y^1

f(x,y)=xyf(x,y)=xy

  obj=Monomial2D( n1=1, n2=1, name1="x", name2="y" )
call obj%display( 'f(x,y)=' )
>result
f(x,y)=x^1*y^1

f(x,y)=x2yf(x,y)=x^2*y

  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