CLOSED_FORM-cash-set_expr: Set the closed form expression

CLOSED_FORM$set_exprR Documentation

Set the closed form expression

Description

This function updates the closed form expression. It will not update the symbol values. For updating symbol values, please check CLOSED_FORM$set_sym.

Usage

CLOSED_FORM$set_expr(expr)

Arguments

expr

Formula. Only the right hand side of the last ~ will be kept as the final expression.

Value

Return the object itself.

Examples


# Constant variable
a <- 1

# Random uniform variable
z <- closed_form(~2 + a)

z$compute()

# Update the expression
z$set_expr(~2 - a)

z$compute()

TengMCing/visage documentation built on Aug. 28, 2024, 3:27 p.m.