Commit 35aef658 authored by michel's avatar michel
Browse files

added short cut for standardized cummulative normal distribution


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2030 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 58753c27
......@@ -357,6 +357,12 @@ expression : '(' expression ')'
{ $$ = driver.add_unknown_function($1); }
| NORMCDF '(' expression COMMA expression COMMA expression ')'
{ $$ = driver.add_normcdf($3,$5,$7);}
| NORMCDF '(' expression ')'
{
string *zero = new string("0");
string *one = new string("1");
$$ = driver.add_normcdf($3,driver.add_constant(zero),driver.add_constant(one));
}
;
comma_expression : expression
......@@ -503,6 +509,12 @@ hand_side : '(' hand_side ')'
{ $$ = driver.add_min($3 , $5); }
| NORMCDF '(' hand_side COMMA hand_side COMMA hand_side ')'
{ $$ = driver.add_normcdf($3,$5,$7);}
| NORMCDF '(' hand_side ')'
{
string *zero = new string("0");
string *one = new string("1");
$$ = driver.add_normcdf($3,driver.add_constant(zero),driver.add_constant(one));
}
;
pound_expression: '#' NAME EQUAL hand_side ';'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment