X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh_parser.yy;h=faaafcacca4e1ab2ca6bf8cd8a081a9989089786;hp=7c7e548cc41d8a01a036a7c38616cec456c644c7;hb=47512c1a9dba42e99570f617511db11dfcb176aa;hpb=64c3117e974abb88920a68bbc0b8d01139e43aad;ds=sidebyside diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index 7c7e548c..faaafcac 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -479,6 +479,12 @@ static ex f_series(const exprseq &e) return e[0].series(e[1], ex_to(e[2]).to_int()); } +static ex f_sprem(const exprseq &e) +{ + CHECK_ARG(2, symbol, sprem); + return sprem(e[0], e[1], ex_to(e[2])); +} + static ex f_sqrfree2(const exprseq &e) { CHECK_ARG(1, lst, sqrfree); @@ -571,6 +577,7 @@ static const fcn_init builtin_fcns[] = { {"quo", fcn_desc(f_quo, 3)}, {"rem", fcn_desc(f_rem, 3)}, {"series", fcn_desc(f_series, 3)}, + {"sprem", fcn_desc(f_sprem, 3)}, {"sqrfree", fcn_desc(f_sqrfree1, 1)}, {"sqrfree", fcn_desc(f_sqrfree2, 2)}, {"sqrt", fcn_desc(f_sqrt, 1)},