Monomial1D example 1
This example shows the usage of [[Monomial1D_]] class.
Modules and classes
- [[Monomial1D_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(Monomial1D_) :: obj
Initiate the object.
obj=Monomial1D( degree=0_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^0
obj=Monomial1D( degree=1_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^1
obj=Monomial1D( degree=2_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^2
END PROGRAM main