589 Reputation

13 Badges

12 years, 355 days

MaplePrimes Activity

These are replies submitted by itsme


thanks for your post. I'm on linux.

there are ususally multiple processes related to maple, so that won't work. I was thinking that if there is a way to save a given worksheet programatically, then it's very straightforward to grab the latest saved file name... but even that if not fool proof.

either way, i submitted a 'feature request' about this.


thanks for your reply. I couldn't find one either. I usually have many worksheets in any relevant folder, so that wouldn't work.

Agree, that this can be very useful.

@Carl Love 

thanks for your input!... yes, that indeed is what i needed.

a minor modification (in case someone finds it useful) to pass on the extra args:

map_terms:= (f,e)-> `if`(e::`+`, map(f,e, _rest), f(e, _rest)):



thanks for the quick answer

@Carl Love 

yikes!.. i've of course tried that, but actually had coeffs (and not coeff) in that call as was playing with coeffs earlier, which failed. Didn't notice and just figured coeff doesn't know how to deal with negavitve powers. 



I wonder why the choice to use method(arg,object), and not method(object, arg), was made.

The latter seems much more natural to me, as the position of the 'object' is always the same, and does not depend on the signature of the method.



right... for me, these days, i find it harder and harder to use the worksheet interface (no useful key bindings, no syntax highlighting), and use an outside editor even for smaller calculations if analytics are required. The pain of *constantly* reaching for a mouse, every few seconds, on every edit, is unbearable (i'm only exaggerating slightly ;) ) after many years of vim (or emacs i'd imagine). This is even more true with Mathematica due to its inherently functional programming style, which often involves writing code "outward" (i.e. new statements wrap older ones).

For those who may be interested, there is a beautiful plugin for jupyter-notebooks (jupyter-vim-binding) that allow one to use (basic) vim modes for editing - works with whatever kernels are supported... for me it's a game changer, and the editing experience in jupyter is magical... no mouse needed essentially.
Now if only maplesoft provided a kernel for juputer-servers... that would be something!


@Joe Riel thank you for sharing!...

would would the advantage be of doing things this way, vs just calling "raed package.mpl"? i guess i don't know what one gains by writing a "package", other than things get imported/loaded differently.

also.. so say you've made changes in your package, you hit a hotkey in emacs/vim, things get "complied" and the package gets updated in your packages directory that maple knows about. I assume you then have to manually reload it in maple? or is there a way to make this happen automatically?

thanks again.


i also use vim for writing code, but then just make:

read "code1.mpl"

read "code2.mpl"

type statements in my worksheet.

if you have something you're willing to share (don't waste time with anything new - this is no big deal), could you give an example of a more complicated module you've written this way, and how it's being used/imported/read?

Also, is there a way to have maple automatically update/reread a file/module on change? so say i've reaad/imported one, then update it in a separate editor, and would like a running maple session to automatically reload it.




you could try installing the physics package from within maple via:


(maybe worth while removing whatever you've installed before though)


thanks for the workarounds.

I was hoping Eigenvectors() would support "implicit=false", in the same way Eigenvalues() seems to. I guess this is a bug/limitation then.




very helpful, thanks for posting.


@Kitonum  @vv

thanks for you suggestions. They do work indeed.

Was hoping there is flag to maple's simplify that i missed and that would help it do this... i have some number of similar expressions (within larger expresisons), and so this wil help.

I'm kind of impressed that mathematica does, what i would consider, the right thing in these cases.


the "spurious" sequence \[] is how you define special/greek characters in mathematica using standard ascii (this is what i meant by referring to lprint). Maple has some understanding of them. Try:

a1:=convert("\[Kappa] + \[Lambda]  + \[Gamma]", FromMma);

lprint(a1); #looks like the right thing.

It seems to get confused, however, once some implicit multiplication is involved (perhaps along with these "special" characters).

This seems like a bug to me. 


1 2 3 4 5 6 7 Last Page 1 of 15