ecterrab

14540 Reputation

24 Badges

20 years, 21 days

MaplePrimes Activity


These are replies submitted by ecterrab

@Preben Alsholm 

Sorry about that. End of the year, 8,000 RPM non-stop, reading too fast .. All the best @Preben Alsholm@Carl Love@mmcdara@nm !

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

@mthkvv 
There is still the alpha123 (large numbers) of intermediate indices appearing in the output, most of them can be changed by single greek letter indices. It is not a wrong thing, but it is something that makes readability more difficult. I will give a look at how to improve that.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

I see a lot of good ideas around; here is my version, similar to those presented. (It follows an image, at the end is the worksheet linked.)

ConstantsFirst.mw

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

@vv 

Good catch, a different problem this function of no arguments C(); it is fixed in v.895, thanks.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

It makes sense to me to only implement existing notation. I have not seen "\arcsin^2 x" as you say. For reference, see this wiki page about the subject. That said, I am inclined to remove 'mixed' and maybe keep 'computer' as default. Quoting what for me are the two related key points in that wiki page,

  • To distinguish exponentiation from function composition, the common usage is to write the exponential exponent after the parenthesis enclosing the argument of the function; that is, f(x)^3 means (f(x))^3, and f(x)^(–1) means 1/f(x). 
  • For historical reasons, and because of the ambiguity resulting from not enclosing arguments with parentheses, a superscript after a function name "applied specifically to the trigonometric and hyperbolic functions" has a deviating meaning: a positive exponent applied to the function's abbreviation means that the result is raised to that power, while an exponent of −1 still denotes the inverse function​​​​​​​.

Me again, the first item is the same as saying that () has higher precedence than ^, as it is, in fact, the case in computer algebra systems. There is more on that page, but I feel the above is the essence and is what you see implemented in (Physics:-)Latex, to replace latex. The first item for computer notation and the second item (as you see it described, no parenthesis in "sin^2 x") as textbooknotation. The current value mixed reflects more my dislike of interpreting the n in "sin^n" as power while the -1 in "sin^(-1)" as composition (for inverse function), but it is tradition, and we people speak with that.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

@Carl Love 

Yes, but I suppose @nm used LinearAlgebra just to generate the structures (Vector and Matrix), and that is what Latex receives and translates; the translation is performed regardless of whether a package is loaded (unless the package - itself - specifies LaTeX-translation rules, as, e.g. DifferentialGeometry does, but not the case of LinearAlgebra).

That said, I also have the impression that some people think LinearAlgebra is needed to input a Vector or Matrix, and your comment helps clarifying that; likewise people frequently load PDEtools before using pdsolve, which is also unnecessary.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@rlopez 
Wow! I didn't have that one. Fantastic tip!

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

@Polovodov 
If you re-execute the worksheet, re-evaluation happens and everything changes again. So no, this approach does not keep the output and equation label in place after re-evaluation. It would be good if some attribute could be attached to that block of output to keep it in place ... Perhaps something to implement in the Maple GUI in future releases.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

@nm@itsme

OK, in v.884 we have sqrt(x)*a -> \sqrt{x} \, a, so with a space after sqrt and also a new keyword: Latex:-Settings(spaceaftersqrt = true); set it to false and no \, is inserted after \sqrt{x}.

By the way, the current default values of these Settings are what seems more appropriate (say, to me), but opinions are welcome. At this moment we have:

The default values of useinputlineprompt (true in a worksheet, false in a document) and useimaginaryunit (the value of interface(imaginaryunit)) are according to the status of things when you first execute Latex. The prompt appears when File -> Export -> LaTeX on a worksheet, but also if you pass the optional argument thisisinput to Latex.

All the other ones are conventional, and I am inclined to change to powersoftrigonometricfunctions = computernotation (will become maplenotation in the next version probably tomorrow) and am in doubt about usecolor = false

Opinions about these defaults and suggestions for new relevant settings are welcome.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

It looks great. The setting is old, not new.

Among the first feedback I got for what was Physics:-Latex, in August, some people said right away they prefer "\\," instead of " " as invisible times. Mainly, other people don't think of this as having a "global adverse effect", so it is not a matter of "is" or "is not" but more of a preference. The same happens with this space after \sqrt{xxx} that the default latex typesetting does not have.

Anyway, I still don't have a definite opinion about such an exception ... I tend to think "the closer to what I see on the worksheet while not interfering with latex typesetting ideas". Somehow this space after \sqrt{xxx} is quite in the middle of those two concepts.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@johan162 
That is an excellent suggestion. Naturally, I cannot tell the future, but concretely see the menu Copy Special -> Copy as LaTeX happening for the next Maple release.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

Hi

Yes this new \! is intentional, to not leave a space between a function name and its arguments, i.e. have y(x) displayed by latex as you see when you input $y(x)$, instead of what you see when you input $y\left(x\righ)$. So:

This space, in this example between y and (x), is, however, configurable. Try Latex:-Settings(leavespaceafterfunctionname = true) and you will see the space there (i.e., no \!), as before. And then if you want to use the mleftright for some other reason, using this option is the way to go.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

@nm 

The issue was not related to the Maplesoft Physics Updates, but to the download of any Maple Cloud package, only happening in the Windows platform, and not for everybody but only for some Windows users. This problem got noticed - then mentioned - in connection with the Maplesoft Physics Updates because the number of downloads of this package is bigger than the number of downloads of other packages. All that is explained in this Mapleprimes post.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

This is good news and turns unnecessary the workaround for the problem of installing MapleCloud packages that some people experienced, as per comments also in this other Mapleprimes post.

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft.

First 15 16 17 18 19 20 21 Last Page 17 of 64