sumDisplay {lazy.symbolic}R Documentation

Display the Structure of Summations

Description

Display the Structure of Summations

Usage

sumDisplay(sexpr, print = 1, return = 0, debug = 0)

Arguments

sexpr

an expression containing summations

print

= 0 not to print the result

return

= 1 to return the result

debug

= 1 to print intermediate result

Value

If [return=1] a string vector which shows the structure when printed as a column vector.
otherwise, the blank-compressed input expression.

Examples

sexpr="X1+s(X2+s(X3+X4,{i})+X5,{b})+Y+s(X6+X7,{j,k})+Z"
res0=suminfo( sexpr, print=1 )
res1=sumDisplay( sexpr )

sexpr="X+s(F(a1+A1,{i1})+Y+s(a3+A3,{i3,i3e}),{j2})+Z"
res0=suminfo( sexpr, print=1 )
res1=sumDisplay( sexpr )

ss=mat2sum("A+B%*%C%*%diag(D)%*%(E-F)+G") |> print() |> sumDisplay()


[Package lazy.symbolic version 1.0.0.20250425 ]