# Items tagged with atomic_identifieratomic_identifier Tagged Items Feed

### changing pronumeral results in different...

February 06 2013 by Maple

0

5

When i use the pronumeral thetac (using greek characters) I initially get numeric data reported, but later in the script i get the pronemeral literally repeated (as though there is no value defined for this pronumeral).

This does not happen for thetahs (using greek characters), where I always get numeric results (through the entire script).

See the following script: sample_1.mw

I re-wrote the...

### Change Atomic definition back to 2-D...

November 07 2012 by Maple

How does one change a previous Atomic setting back to non-Atomic?  This seems so simple, but I can't find anyway to Undo this change.

Thanks,

### "eval" results in "vector index out...

September 14 2012 by Maple 16

0

3

Hey Everybody,

I have only been using Maple for a few weeks but have been very much enjoying the functionality of the with(VectorCalculus) tools. That said, I have been having some trouble evaluating vectors at specific values.

> with(VectorCalculus);
> P[0] := PositionVector([t, ln(t)]);
> N[0] := PrincipalNormal(P[0], t);
> P := eval(P[0], t = 1);

### convert/identifier

July 05 2012 by Maple

1

3

Here is a hacked-up and short convert/identifier procedure.

The shortness of the procedure should is a hint that it's not super robust. But it can be handy, in some simple display situations.

If I had made into a single procedure (named G, or whatever) then I could have declared its first parameter as x::uneval and thus avoided the need for placing single-right (uneval) quotes around certain examples. But for fun I wanted it to be an extension of convert. And while I could code special-evaluation rules on my convert extension I suppose that there no point in doing so since convert itself doesn't have such rules.

For the first two examples below I also typed in the equivalent expressions in 2D Math input mode, and then used the right-click context-menu to convert to Atomic Identifier. Some simple items come out the same, while some other come out with a different underlying structure and display.

 > restart:
 > convert/identifier:=proc(x)    cat(#,convert(convert(:-Typesetting:-Typeset(x),global),name)); end proc:
 > convert( 'sqrt(4)', identifier);

 > eval(value(%)); lprint(%);

#msqrt(mn("4"))

 >

 > lprint(%);

#msqrt(mn("4"))

 > convert( 'int(BesselJ(0,Pi*sqrt(t)),t)', identifier);

 > eval(value(%)); #lprint(%);

 >

 > #lprint(%);
 > convert( Vector[row](['Zeta(0.5)', a.b.c, 'limit(sin(x)/x,x=0)', q*s*t]), identifier);

 > eval(value(%)); #lprint(%);

Extra points for noticing that function names like sin are italicized and not in an upright font, if you have a workaround. How to discern which instances of fontstyle="normal" should be removed?