C_R

1960 Reputation

19 Badges

5 years, 279 days

MaplePrimes Activity


These are questions asked by C_R

Any smarter assumptions or substitutions I could try out on the left handside of the below

 

If this does not work I would be greatefull for fast numerical evaluation methods. Plotting for example takes to long.


Attached you will find some background on what I want to achieve.

Gaussian_integration.mw

With the following steps

S1: Open Help pressing F1

S2: enter `if in the search field

S3: click a topic in the result list

S4: search within the topic with find/replace (Crtl f) the term `if 

I get plenty of results where I cannot find the search term in the help topic. Why is that?

Is help ignoring the left single quotes ` ?

I don't think so: I get usefull results for `` and `i, which in the later case also lists the topic "ifelse" that contains `if in the textbody.

So, why does advanced searching with the exact phrase "`if" not list the "ifelse" topic?

Realted question:

Why does the search term "(* " not list the relevant help topic help(comment)?

Somehow related in the context of getting more specific results:

https://www.mapleprimes.com/questions/234462-Searching-The-Help-System-Why-Are-There-No-Hits-For-Solve

To label axes, names with Maple typesetting tags can be used. This is convenient because the typesetting package does not have to be loaded and code is shorter. However, when used together with plot white spaces (mo(“ “)) sometimes do render. Below is an example where a white space after the character N is not rendered.

with(Typesetting):

ta:=Typesetting:-Typeset(`#mrow(mo("N "),mo("* "),msup(mo("mm"),mo("-2")))`)

Typesetting:-mrow(Typesetting:-mo("N "), Typesetting:-mo("* "), Typesetting:-msup(Typesetting:-mo("mm"), Typesetting:-mo("-2")), Typesetting:-msemantics = "atomic")

(1)

tb:=`#mrow(mo("N ",color="red"),mo("* "),msup(mo("mm"),mo("-2")))`

`#mrow(mo("N ",color="red"),mo("* "),msup(mo("mm"),mo("-2")))`

(2)

tc:=Typesetting:-Typeset(mrow(mo("N "),mo("* "),msup(mo("mm"),mo("-2"))))

Typesetting:-mrow(Typesetting:-mo("N "), Typesetting:-mo("* "), Typesetting:-msup(Typesetting:-mo("mm"), Typesetting:-mo("-2")))

(3)

plot(x,x=1..10,labels=[ta,tb],title=tc)

 

NULL

A workarround is adding an addtional tag mspace() or an invisible html character. Are there any others?

Since typesetting of normal Maple output shows the whitespace I am wondering if this way of plotting axis labels is intended. 

Download Typesetting_white_space.mw

For plotting with a plot function that has not been upgraded to units I want to remove units from the following

5.818576570*10^(-7)*exp(`–`((1.827959741*10^(-6))*(x^2+y^2)/Unit('`μm`')^2))/Unit('`μm`')^2

0.5818576570e-6*exp(-0.1827959741e-5*(x^2+y^2)/Units:-Unit(`μm`)^2)/Units:-Unit(`μm`)^2

(1)

convert(0.5818576570e-6*exp(-0.1827959741e-5*(x^2+y^2)/Units:-Unit(`μm`)^2)/Units:-Unit(`μm`)^2, unit_free)

0.5818576570e-6*exp((-0.1827959741e-5*x^2-0.1827959741e-5*y^2)*Units:-Unit(1/`μm`^2))

(2)

map(convert, 0.5818576570e-6*exp(-0.1827959741e-5*(x^2+y^2)/Units:-Unit(`μm`)^2)/Units:-Unit(`μm`)^2, unit_free)

0.5818576570e-6*exp((-0.1827959741e-5*x^2-0.1827959741e-5*y^2)*Units:-Unit(1/`μm`^2))

(3)

NULL


Anything else I could try with convert or something better than this

subs(Unit(1/'`μm`'^2) = 1, %)

I cannot conclude form the help page ?convert,unitfree if it should have worked on the expression.

Is the expression (1) non-scalar?

The term unit-free describes a scalar quantity with no (multiplicative) unit attached to it. Conversion to unit-free does not apply directly to any non-scalar Maple object or data structure, which may still have units embedded within it.

Download convert_unit_free_of_exp.mw

This plot does not have units on the y-axis

Unit(('W')/'m'^2)*max(t/Unit('s'), 0);
plot(%, t = -Unit('s') .. 2*Unit('s'));

Any idea why and how to get them back when max is involved?

2 3 4 5 6 7 8 Last Page 4 of 24