Monomial1D example 5
This example shows the usage of Monomials1D
, EvenMonomials1D
and OddMonomials1D
methods for [[Monomial1D_]] class.
Monomials1D
returns the monomials from toEvenMonomials1D
returns the monomials from toOddMonomials1D
returns the monomials from to
Modules and classes
- [[Monomial1D_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(Monomial1D_), allocatable :: y1(:), y2(:), y3(:)
integer(i4b) :: ii, n
!!! note "Monomials"
Monomials1D
returns the monomials to .
y1 = Monomials1D( order=5, varname="x" )
do ii = 1, SIZE( y1 )
call y1(ii)%display( "f(" // tostring( ii ) // ")=" )
end do
!!! example "result"
!!! note "Monomials"
EvenMonomials1D
returns the monomials to .
y2 = EvenMonomials1D( order=5, varname="x" )
do ii = 1, SIZE( y2 )
call y2(ii)%display( "f(" // tostring( ii ) // ")=" )
end do
!!! example "result"
!!! note "Monomials"
OddMonomials1D
returns the monomials to .
y3 = OddMonomials1D( order=5, varname="x" )
do ii = 1, SIZE( y3 )
call y3(ii)%display( "f(" // tostring( ii ) // ")=" )
end do
!!! example "result"
END PROGRAM main