awass

296 Reputation

10 Badges

18 years, 150 days

MaplePrimes Activity


These are replies submitted by awass

@acer I find this issue so strange that I have tried many things. My original post was about typing directly into the Maple worksheet. I later copied and pasted that file into Mapleprimes for the perusal of experts and because I was not able to upload my .Maple file. When I saved the file as .mw I was able to upload. I also opened a plaintext editor to try and see if I was typing something strange but the only peculuarity was the added semiclon and added blank line that you noticed.

@acer  I am not sure what you mean  by the "actual text file". I use the Maple interface to type my commands and that file is what I uploaded. What else can I do? I do not use an external editor.

@acer Here are the contents of a plaintext file:


Copying from 2D worksheet into a plain text file:

q:=proc(x) sin(x);

  end proc;

q:=proc(x) x+3;

  end proc;


Copying from 1D worksheet into a plain text file:

q:=proc(x)
x+3
end proc;

(No space and no semicolon.)

Typing directly into a plain text file:

Q:=proc(x)
sin(x)
End proc;

Maple seems to alter what I type into 2D.

FWIW I am uploading a minimal file with the problem. As soon as I switch from 2D to 1D the problem goes away. I don't know how you see the newline characters.

BTW, the uploaded contents of the file do not look like what I see on my screen; I have cut and pasted that as well.
 

"q:=proc(x) sin(x)"

"  end proc;"
%?%?

Error, unterminated procedure

"q:=proc(x) sin(x)"

Error, unable to parse

"  end proc;"

 

"q:=proc(x) x+3"

"  end proc;"
%?%?

Error, unterminated procedure

"q:=proc(x) x+3"

Error, unable to parse

"  end proc;"

 

restart;

q:=proc(x)x+34end proc;

q := proc (x) x+34 end proc

(1)

 


 

Download bad.mws

 

q:=proc(x)
sin(x)
end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(qAssignTypesetting:-mambiguous(

      procApplyFunction(x) sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)
q:=proc(x)
x+3
end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(qAssignTypesetting:-mambiguous(

      procApplyFunction(x) x + 3,

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)
restart; #Switching to 1 D input
q:=proc(x)
x+3
end proc;
                    q := proc(x)  ...  end;

No problem!

@acer 
 

restart

Using Maple 2018.1 on an iMac running mac Sierra.

``

``

First strange occurence with description.

``

"q:=proc(x) description "blah,blah";  x^(2     )"

"  end proc;"

Error, unterminated procedure

"q:=proc(x) description "blah,blah";  x^(2     )"

 

Error, unable to parse

"  end proc;"

 

 

 

"q:=proc(x)  x^(2     )"

"  end proc;"
``

Error, unterminated procedure

"q:=proc(x)  x^(2     )"

 

Error, unable to parse

"  end proc;"

 

``

"q:=proc(x) sin(x)"

"  end proc;"
NULL``

Error, unterminated procedure

"q:=proc(x) sin(x)"

 

Error, unable to parse

"  end proc;"

 

restart

"Q:=proc(x) sin(x)"

"  end proc;"
````

Error, unterminated procedure

"Q:=proc(x) sin(x)"

 

Error, unable to parse

"  end proc;"

 

"Q:=proc(x)   sin(x)"

"    end proc;"
``

Error, unterminated procedure

"Q:=proc(x)   sin(x)"

 

Error, unable to parse

"    end proc;"

 

``

H := proc (x) x^2 end proc

proc (x) x^2 end proc

(1)

H := proc (x) x^2*sin(x) end proc

proc (x) x^2*sin(x) end proc

(2)

K := proc (x) sin(x^2) end proc

proc (x) sin(x^2) end proc

(3)

"Q:=proc(x) sin(x)"

"  end proc;"
``

Error, unterminated procedure

"Q:=proc(x) sin(x)"

 

Error, unable to parse

"  end proc;"

 

``

 


 

Download wierdness.mw

@awass 

There are semicolons inserted by the copy and paste procedure after the body of the procedures for some reason. They are not visible in the original worksheet.

 

restart;
Using Maple 2018.1 on an iMac running mac Sierra.


First strange occurence with description.

q:=proc(x) description "blah,blah";  x^(2     );

  end proc;
Error, unterminated procedure
                        /                              /
 Typesetting:-mambiguous\qAssignTypesetting:-mambiguous\

                                                      2       
   procApplyFunction(x) description "blah,blah"semi  x      ,

                                                \\
   Typesetting:-merror("unterminated procedure")//
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)


q:=proc(x)  x^(2     );

  end proc;

Error, unterminated procedure
                           /                              /
    Typesetting:-mambiguous\qAssignTypesetting:-mambiguous\

                             2       
      procApplyFunction(x)  x      ,

                                                   \\
      Typesetting:-merror("unterminated procedure")//
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)

q:=proc(x) sin(x);

  end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(qAssignTypesetting:-mambiguous(

      procApplyFunction(x) sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)
restart;
Q:=proc(x) sin(x);

  end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(QAssignTypesetting:-mambiguous(

      procApplyFunction(x) sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)
Q:=proc(x)   sin(x);

    end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(QAssignTypesetting:-mambiguous(

      procApplyFunction(x)   sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
   Typesetting:-mambiguous(    Typesetting:-mambiguous(end,

     Typesetting:-merror("unable to parse")) procsemi)

H := proc (x) x^2 end proc;
                    H := proc(x)  ...  end;
H := proc (x) x^2*sin(x) end proc;
                    H := proc(x)  ...  end;
K := proc (x) sin(x^2) end proc;
                    K := proc(x)  ...  end;
Q:=proc(x) sin(x);

  end proc;

Error, unterminated procedure
    Typesetting:-mambiguous(QAssignTypesetting:-mambiguous(

      procApplyFunction(x) sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)

 

the procedure q discussed above does not have a ; after sin(x) in my worksheet.It only appears after I cpy and paste.
 

q:=proc(x)

sin(x)

  end proc;
 

is what I see.

 

@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.

1 2 3 4 5 6 7 Page 3 of 9