nterms2 {lazy.symbolic}R Documentation

Calculate the Number of Terms in an Expression

Description

Calculate the Number of Terms in an Expression

Usage

nterms2(expr)

Arguments

expr

an expression or string

Value

# of terms

Examples

nterms2("-A%*%t(B)+A%*%C+A%*%E%*%F-A%*%E%*%Diag(G)+A%*%E%*%H-A%*%E")



[Package lazy.symbolic version 1.0.0.20250803 ]