Description Usage Arguments Value Examples

View source: R/fdaPDE.objects.R

This function defines a FEM object. This is not usualled called directly by users.

1 | ```
FEM(coeff,FEMbasis)
``` |

`coeff` |
A vector or a matrix containing the coefficients for the Finite Element basis expansion. The number of rows
(or the vector's length) corresponds to the number of basis in |

`FEMbasis` |
A |

An `FEM`

object. This contains a list with components `coeff`

and `FEMbasis`

.

1 2 3 4 5 6 7 8 9 | ```
## Upload a triangular mesh and plot it
data("mesh.2D.rectangular")
plot(mesh.2D.rectangular)
## Create a linear Finite Element basis
FEMbasis = create.FEM.basis(mesh.2D.rectangular)
## Define a sinusoidal function as expansion of this basis and plot it
coeff <- sin(mesh.2D.rectangular$nodes[,1])*cos(mesh.2D.rectangular$nodes[,2])
FEM_object<- FEM(coeff, FEMbasis)
plot(FEM_object)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.