Skip to main content

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.

y=1y=1

  obj=Monomial1D( degree=0_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^0

y=xy=x

  obj=Monomial1D( degree=1_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^1

y=x2y=x^2

  obj=Monomial1D( degree=2_I4B, varname="x" )
call obj%display( 'f(x)=' )
>result
f(x)=x^2
END PROGRAM main