awass

261 Reputation

10 Badges

16 years, 283 days

MaplePrimes Activity


These are replies submitted by awass

@vv I guess you are right. The procedure you provided is neat!
 

I still think the help pages should warn folks about the procedure, or, even better, incorporate your procedure.

@Kitonum Hi,

Inserting the evalf in abs(x) is certainly better but my problem is in some mysterious hidden quotes in the worksheet. That is why the error message says "unable to delimit..."  The copied version of the worksheet I first entered (as opposed to the uploaded version above) shows those quotes.

 

@Carl Love 
 

restart

 

Typesetting:-mrow(Typesetting:-mi("et", italic = "true", mathvariant = "italic"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("&coloneq;", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.2777778em", rspace = "0.2777778em"), Typesetting:-mo("proc", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("x", italic = "true", mathvariant = "italic")), mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mspace(height = "0.0ex", width = "0.0em", depth = "0.0ex", linebreak = "newline"), Typesetting:-mo("description", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(""this is a variant of evalf that gets rid of almost 0 nos.", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("rounding", italic = "true", mathvariant = "italic"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("error", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em")), mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("and", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("shortens", italic = "true", mathvariant = "italic"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("the", italic = "true", mathvariant = "italic"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("display", italic = "true", mathvariant = "italic"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("to", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mn("2", mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("digits"", italic = "true", mathvariant = "italic"), Typesetting:-mo(";", mathvariant = "normal", fence = "false", separator = "true", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.2777778em"), Typesetting:-mspace(height = "0.0ex", width = "0.0em", depth = "0.0ex", linebreak = "newline"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("if", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("abs", italic = "false", mathvariant = "normal"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("x", italic = "true", mathvariant = "italic")), mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("<", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.2777778em", rspace = "0.2777778em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-msup(Typesetting:-mn("10", mathvariant = "normal"), Typesetting:-mrow(Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mo("&uminus0;", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.2222222em", rspace = "0.2222222em"), Typesetting:-mn("14", mathvariant = "normal")), mathvariant = "normal")), superscriptshift = "0"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("then", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mn("0", mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("else", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mi("evalf", italic = "true", mathvariant = "italic"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("x", italic = "true", mathvariant = "italic"), Typesetting:-mo(",", mathvariant = "normal", fence = "false", separator = "true", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.3333333em"), Typesetting:-mn("2", mathvariant = "normal")), mathvariant = "normal"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("end", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("if", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mspace(height = "0.0ex", width = "0.0em", depth = "0.0ex", linebreak = "newline"), Typesetting:-mspace(height = "0.0ex", width = "0.0em", depth = "0.0ex", linebreak = "auto"), Typesetting:-mo("end", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(" ", mathvariant = "normal", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo("proc", bold = "true", mathvariant = "bold", fontweight = "bold", fence = "false", separator = "false", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.0em"), Typesetting:-mo(";", mathvariant = "normal", fence = "false", separator = "true", stretchy = "false", symmetric = "false", largeop = "false", movablelimits = "false", accent = "false", lspace = "0.0em", rspace = "0.2777778em"))

Error, unable to delimit strings/identifiers

Typesetting:-mambiguous(Typesetting:-mambiguous(Typesetting:-mrow(Typesetting:-mi("et", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&Assign;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.2777778em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.2777778em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("proc", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mfenced(Typesetting:-mi("x", fontstyle = "italic", mathvariant = "italic"), display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mspace(depth = "0.0ex", height = "0.0ex", linebreak = "newline", width = "0.0em"), Typesetting:-mo("description", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&quot;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("this is a variant of evalf that gets rid of almost 0 nos", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&period;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("rounding", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("error", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false")), display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("and", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("shortens", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("the", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("display", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("to", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mn("2", display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("digits"", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&semi;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.2777778em", separator = "true", stretchy = "false", symmetric = "false"), Typesetting:-mspace(depth = "0.0ex", height = "0.0ex", linebreak = "newline", width = "0.0em"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("if", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("abs", display_reference = "361", fontstyle = "normal", mathvariant = "normal", reference = "362"), Typesetting:-mfenced(Typesetting:-mi("x", fontstyle = "italic", mathvariant = "italic"), display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&lt;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.2777778em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.2777778em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-msup(Typesetting:-mn("10", display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mo("&uminus0;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.2222222em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.2222222em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mn("14", display_reference = "361", mathvariant = "normal", reference = "362")), display_reference = "361", mathvariant = "normal", reference = "362"), superscriptshift = "0"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("then", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mn("0", display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("else", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mi("evalf", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mfenced(Typesetting:-mrow(Typesetting:-mi("x", fontstyle = "italic", mathvariant = "italic"), Typesetting:-mo("&comma;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.3333333em", separator = "true", stretchy = "false", symmetric = "false"), Typesetting:-mn("2", display_reference = "361", mathvariant = "normal", reference = "362")), display_reference = "361", mathvariant = "normal", reference = "362"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("end", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("if", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mspace(depth = "0.0ex", height = "0.0ex", linebreak = "newline", width = "0.0em"), Typesetting:-mspace(depth = "0.0ex", height = "0.0ex", linebreak = "auto", width = "0.0em"), Typesetting:-mo("end", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&InvisibleTimes;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("proc", accent = "false", display_reference = "369", fence = "false", fontweight = "bold", largeop = "false", lspace = "0.0em", mathvariant = "bold", movablelimits = "false", reference = "370", rspace = "0.0em", separator = "false", stretchy = "false", symmetric = "false"), Typesetting:-mo("&semi;", accent = "false", display_reference = "361", fence = "false", largeop = "false", lspace = "0.0em", mathvariant = "normal", movablelimits = "false", reference = "362", rspace = "0.2777778em", separator = "true", stretchy = "false", symmetric = "false")), Typesetting:-merror("unable to delimit strings/identifiers")))

 

restart

et := proc (x) if abs(x) < 1/100000000000000 then 0 else evalf(x, 2) end if end proc

proc (x) if abs(x) < 1/100000000000000 then 0 else evalf(x, 2) end if end proc

(1)

Now I will just retype and try again as Carl Love suggested.

restart

et := proc (x) description "this is a variant of evalf"; if abs(x) < 0.1e-13 then 0 else evalf[2](x) end if end proc

proc (x) description "this is a variant of evalf"; if abs(x) < 0.1e-13 then 0 else evalf[2](x) end if end proc

(2)

et(Pi)

Error, (in et) cannot determine if this expression is true or false: Pi < 0.1e-13

 

et(3.1677)

3.2

(3)

``


 

Download proc.description_.mw

@Carl Love 

 

The interlaced quotes do not appear on my worksheet-only appear when I copy and paste. Also, the procedures are duplicates-copied and pasted; only the # is different.

@Preben Alsholm 

There are many people (perhaps most) who do not read the instructions but rely on some form of uniformity to operate their TV's ,computers, dishwashers etc. Others read the manuals. Similarly, some of us read the documentation and others (myself included) just look for an illustartive example that covers the case we are interested in.  A matter of style I think.

 

@Preben Alsholm inconsistency means that (unless the documentation is very complete) one must experiment with each command before you can use it with confidence.

Thank you for your reply. Yes, one can convert to standard syntax easily enough (you do it better than I did so I will use your code) but why does dsolve object ONLY when the numeric option is called. It DOES work symbolically.

@Carl Love 

Yes, parentheses are a programmers best friend!

@vv Thanks,  I did not think of that.

@Axel Vogt 

 

Sorry, I don't understand your comment.

@Carl Love 

I understand now. It is like trying to plot
f := proc (x) options operator, arrow; if Pi < x then x^2 else -x end if end proc;

plot(f)

 

Works fine but

plot(f(x), x = -5 .. 5);
Error, (in f) cannot determine if this expression is true or false: Pi < x

plot('f(x)', x = -5 .. 5) also works for the same reason I guess.

I appreciate the clear explanations and the stylistic improvements also. Many thanks.

@Carl Love 

I understand that you have reformatted the input to meet Maple requirements for the plot3d command.
That is the difference between td and TD.

Also, the option remember addition to spped things up by a factor of 3 is clear. 

However, the eval command is the magic which somehow prevents premature evaluation in this case.

I do not undertand what is going on.

The alternative solution you proposed using an if statement works equally well but I also find that a bit mysterious as well as your comment about "bound variables". Could you please explain that?

@_Maxim_ I agree completely.

BTW,in my case doing the computaion 3 times does consume significant time.

@acer  I understand what Maple is complaining about now.

However, I must say I regard it as lazy coding. It would require only a few extra lines of code to accept either  input of the form [f(x,y), g(x,y),h(x,y)] or of the form [triple of values that depend on (x,y)]. It very much reminds me of the web pages that cannot deal with dashes in phone numbers or spaces in credit card numbers. Duh!

@tomleslie  I have never spent much time worrying about the idiosyncrasies and/or weaknesses of Maple. I have work to do. If something does not work in an intuitive way I flail around a bit to get what I want and then go on with my life. It is the 21st century; people do read manuals.

I remember well that in Maple I if you typed a command that had a t in it like plot or int or diff(f(t),t) Maple might balk on occasion for no discernable reason. The fix was to go back, erase the offending t and retype it. Pretty silly but that worked and that is what I told my students to do. Programs can be quirky like people. Not worth thinking about! That bug was fixed by Release 2.

 

1 2 3 4 5 6 7 Page 3 of 9