C_R

2592 Reputation

19 Badges

5 years, 17 days

MaplePrimes Activity


These are questions asked by C_R

I was wondering if this has ever been discussed?

File preview would make life easier when searching an older document.

Since it seems to be a non trivial programming task, I was wondering whether generating a pdf document in parallel to a worksheet could be an option (in a subfolder). However, doing this by hand for all existing documents is not pratical.
 

Could this (generating pdf files) be done by a batchjob?

 

Recently there have been some questions about the unit packages. I would like to add another one that has been on my desk for a while.

The Simple environement overloads the command frem and piecewise. The "most powerful" (can we say so?) environement Standard does not

{with(Units:-Simple)[]} minus {with(Units:-Standard)[]}
                       {frem, piecewise}

For example calculating the remainder of a length in mm does not work in the Standard environment

restart;
with(Units:-Simple):
convert(frem(1.234*Unit(m),Unit(cm)),units,mm);
                      4.000000000 Unit(mm)

restart;
with(Units:-Standard):
convert(frem(1.234*Unit(m),Unit(cm)),units,mm)
Error, invalid input: frem received 1.234*Units:-Unit(m), which is not valid for its 1st argument, x

Why is that?

I am looking for commands that extract from a product the value and the unit.
For example:
How to get 1.65 and m/s^2 from

g_moon := 1.635000000*Unit(('m')/'s'^2)

I was probably looking in the wrong place in Maples unit documentation.
I am not interested in lowlevel commands like op(g_moon)[1]. Something more self-explaining like GetUnit.

Is the a print or plot function that can generate from an expression an expression tree

and/or the corresponding expression DAG

 

Taken from ?ProgrammingGuide,Chapter02

This is a simplified case from a colleague who could not get has to work.

While this

I/sqrt(a);
has(%, sqrt(a));
                               I   
                             ------
                              (1/2)
                             a     

                             false

is a technically correct output from Maple, false is mathematically an incorrect statement (IMO).

I think new users cannot find the explanation for that on their own because in other instances the output is true

has(I/(1 - sqrt(a)), sqrt(a))
                              

                              true

Are there better ways than

I/sqrt(a);
has(%, sqrt(a))or has(%,1/sqrt(a));
                               I   
                             ------
                              (1/2)
                             a     

                              true

Its a bit complicated to include allways the inverse of an expression to capture all instances of an expression.

Should has do this an give a warning that also the inverse is present?

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