acer

32323 Reputation

29 Badges

19 years, 317 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

Have you read and understood the Help page for that command?

Is the X-Y grid evenly spaced in both of those directions?

@Ali Hassani Thank you. I'm glad it serves your purpose.

That 3rd procedure is a little hackish, going through strings. It could be done more carefully.

@Joe Riel Incredible.

@Carl Love This is mostly right.

It is not true that libname can only contain references to directories -- it may also contain references to .mla files.

Also you stated, "To make it fully automatic as you describe, you must update the value of libname in your initialization file."  But that is not the only way to do it. A "toolbox" location also works, eg. with "foobar" a name of one's choice,
   cat(kernelopts('homedir'),"/maple/toolbox/foobar/lib")
also works. Or, version specific,
   cat(kernelopts('homedir'),"/maple/toolbox/2020/foobar/lib")
Such locations are automatically added to libname upon launch.

@dharr Yes, it's not clear why the OP wants atomic names for sub/superscripted expressions. My guess it that it might be to avoid any collision with the actual expression, but the OP really ought to clarify.

The third procedure in my Answer automates all generation of the atomic name which renders in 2D Output like the input expression, with minimal concatenation.

I agree with you that it's generally better to automate construction than to build up a complicated piece of MathML (or TypeMK, in undocumented Maple parlance). Natural exceptions are for cases where the 2D rendering doesn't actually match any valid Maple input expression, or when one wants special color/font/size.

Depending on one's view, one drawback here is that numerals are rendered in italics, which makes then look different from the usual expressions.  Eg,   x[5]^7  when normally typeset.

@MapleEnthusiast Alas, you have not actually answered my query as to what further computation you expect to do with this explicitly computed Matrix inverse.

@MapleEnthusiast What is the purpose of computing this inverse explicitly? For what particular further computation will it get used?

(I ask because this approach may be relatively poor -- some tasks like linear solving or least squares solving or eigen-calculation may be done better and generally more stably, numerically, with other, specialized techniques.)

Why don't you demonstrate why you think that the result is meaningless?

Have you noticed that the condition number of your Identity-A is about 8.3e9 ?

Addressing the followup,:

To plot the Vector V, interpreting its entries as uniformly spaced from a to b on the x-axis,

   plot(<<seq(a..b,(b-a)/(op(1,V)-1))>|V>);

and so, for V with 11 elements then to represent those on a plot from x=0..1,

   plot(<<seq(0..1,1/10)>|V>);

@Zeineb The detail that the data ranges from 0 to 1 on the x-axis is not present in the Vector, nor is it present elsewhere in your Question.

You have left out another detail: whether the Vector entries correspond to uniform placement along x=0..1.

@mmcdara You asked, "By the way, why doesn't Maple affect the type Vector to pf? id it because table is more general a type?"

It is because a table can be indexed by expressions other than just an integer, and so that behavior should be retained for backwards compatibility as well as broader generality.

@mmcdara The very first sentence of my Answer states that pf is a table.

That is a consequence of how the OP wrote his code. A preconstructed Vector is a decent alternative, but I stuck with what the OP had.

@Felipe_123 Do you mean like one of these, say?

PlotHistogram_2.mw

You could easily adjust the offset, if you want the bin numbers centered, or at left or right, etc.

You should run through what all these commands and options do. By familiarizing yourself with it, you'll be better able to customize it on your own in future.

Or you could construct a bar chart from the results from Statistics:-Histogram.

First 137 138 139 140 141 142 143 Last Page 139 of 591