nmacsai

135 Reputation

5 Badges

1 years, 255 days

MaplePrimes Activity


These are replies submitted by nmacsai

@ecterrab Thanks. This was a very helpful and informative posting. The implementation in Primed_symbols_as_variables.mw was exactly what I was searching for.

@ecterrab 

Hi @nmacsai, you need to change your icon: I mentioned this when you copied mine time ago. Yes, I think I made this with LateX. I probably used \ket {\psi(t)}. Mine has the explicit time dependence though. I uploaded two new profile pictures to the mapleprimes server, however they do not yet appear in my profile image pool. Perhaps there is some delay for screening profile pictures. When I see it comes available, I will switch it.

Try latex:-Settings(usedefaultlatexmacros = true). These settings are explained in the ?latex help page, although usedfaultlatexmacros is not yet documented. It is however visible when inputting latex:-Settings(). Yes this is what I was missing.
YWith usedefaultlatexmacros = true, Maple will use the closer default LaTeX macro instead of the macros found in maple.sty, at the cost of sometimes not achieving a final-pdf-look closer to what you see in the worksheet.

By the way, in the computer algebra world, everything beyond arithmetics has a help page, and it is recommended to take a quick look at it before using a command or answering a question in our minds (in ?latex it is mentioned the maple.sty file) I assure you,  I spend vast amounts of time in the help pages but I missed the latex:-Settings() part.  The help pages are the only way I know how to learn Maple. I only make posts when I think I have exhausted every help page resource and\or am truely lost on some fundemental level. I don't yet understand Maple on the source code level and so I will often ask awkward pedestrian questions. Thanks for your patience and for contributing answers to my questions.

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

@acer 

Are the numbers you want to handle only positive integers? Or floats? Just positive integers to start but eventually I'd like to handle floats.

How large are the numbers you want to handle? Anywhere from 0 to 10^6, in base 10.

How many number do you want to handle? 1-1000 How fast do you need it? Not fast. The goal is exploratory at this stage.

I like the ilog10 method for positive integers.

@acer Ah ok the auto-simplification was thwarting me. These are all great solutions thanks!

@Carl Love It appears that background = white by default. If you omit it and export the image you still get a plot with a white background...

It means to have nothing there, when you are viewing the image. Transparency is not a color, so no color entered will produce the desired result.

I wonder if there is a special way to specify no background when generating a plot and/or exporting an image. I imagine others have tried to export plot or images without backgrounds before. I only found one post that bough it up during my search.

Yes in the context of exporting plots. I usually export them in png.

Download the .mw to see the commands used to plot the histogram. They don't show up in the rendering embedded in the above post for some reason.

I haven't see the 'xcoords' option before. Yes, that's exactly what I was going for. Thanks for the response. @tomleslie 

Invaluable Response Thank You@Scot Gould 

@mmcdara This is good to keep in mind!  I wondered how far I'd get with csv. 

The data set I am working with is a csv file.  Is there a way to convert it into a binary format? convert(n,binary) ?  I wasn't sure when to do the conversion.  Do I:

1.  Import the data as a csv, then convert to binary and proceed with manipulations?  Seems non-ideal because I still have to use the csv at the start.  Not sure.
2. Somehow convert it to binary before it is imported?  Or at the import stage?  Not sure.

@acer Yes the datatable method was what I had in mind.  Thank you very much.  Your response is much appreciated.

Lesson:  Importing string columns takes longer than importing plain numerics.  This kind of solves my speed issue however my question still stands.  Can I save imported data variables into the worksheet so I don't have reduently call importdata when troubleshooting.

Page 1 of 1