acer

32348 Reputation

29 Badges

19 years, 330 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@Jjjones98 

Ignore the animation, as you certainly don't need to do anything by rough visualization. The main point of the code I showed there was the way to (programmatically) run until the next event, as a repeated operation, storing the phi values for each perihelion event. Just look at the line where I print a message using each, in a loop. You could do whatever you want with the stored perihelion event phi values. Compare them, compare their differences, or whatever you want. Recall that your original difficulty was in getting your hands on those phi values, and my code gets you those.

As for your plotting question, I don't understand what you mean by, "for r(phi) against r for a range of phi".

@nm Forced splitting of radicals can produce a result which is not valid , ie. not a correct factorization.

@brian bovril It consistently works fine for me, as long as I ensure that the generated images folder/directory is present in the same location as the exported .html file (or copy of same).

When I exported to .html from the Maple GUI there was a popup menu asking about "HTML Export Options", and there I chose "GIF" for representing "Math expressions".

If I copy the .html file to a new location but do not copy its whole associated images folder in a corresponding, new relatively located folder/subdirectory, then naturally the best my browser can do is show the value from the alt tags of the img items.

@nm Yes, it is arbitrary with which of the terms you want to associate the extra factor.

Some of the responders on that other forum noted that too. There were multiple (Mathematica and mathematical) solutions and not all of them always merged any extra, independent term. You didn't specify which you wanted.

If you really want I could treat any -1 term specially and merge with the first factor. The same goes for the `content`.

The original answers here wrapped the "factors" in calls to ``() so that we could multiply them all together while retaining the grouping. Recall that you did not originally specify the format you wanted.

It always saves time and effort to be as clear as you can about what you want, up front.

@nm Returning a list, without wrapping with ``().

splitprod_B.mw

Are there not .gifs (or other image files) that can get produced when you export to .HTML? If so then did you mail yourself those too, keeping any directory/folder structure?

What happens if you just have a +- beastie in regular input and output (and not in any constructed Table thing)? Does it export the same way?

@rlopez When I installed Maple 2017 there was definitely no purple color to Atomic Variables by default.

I think that a strong visual cue is needed, on by default.

But the main point I was trying to make is that the new behavior of the GUI  wrt subscripts is too heavy handed.

The lack of default strong visual cues is a side issue. Replacing a name upon copy&paste is an outright bug. And the italic font for numeric subscripts is poor.

The new behavior of only providing double-underscore subscripts for atomic names is also related to why symbols/accents over-the-symbol are misplaced. They are mis-centered over basename+subscript instead of just over the basename. Even the Layout palette no longer provides a properly typeset 5-way msubsup any more.

It's a curious history, to be sure.

There are lots of little things to it, such as how atomic subscripted names appeared in purple in Maple 17, which was a useful visual cue, since people can forget which they have.

In Maple 2017 the only visual cues that I know of to distinguish between typeset subscripted names (ie. Atomic Variables rather than indexed names) is what the input drop-menu of the Context Bar shows when the mouse focus is put on the name, or whether the subscript is in italic or roman. And the latter distinction only occurs for numeric subscripts.

One aspect that I find especially interesting is that the "new" form of the atomic subscripted name with the double-underscore structure prints in Maple 2017 with a numeric subscript in upright roman font when entered in 2D Input mode (ie. x__1), but then the output displays the subscript in italic. If that output is copy&pasted into a 2D Input area then it also displays the subscript in italic. In Maple 15, in contrast, the atomic identifier displayed in output with the subscript in upright roman font.

So a natural question is: how can one obtain an atomic name -- subscripted by a number -- that displays in output with the subscript in upright roman font? The old form still prints that way in output. Eg, `#msub(mi("x"),mn("1"))`  entered with single left-quotes. But if one copies such output to a 2D Input area then it gets pasted in as the underlying x__1 and output once more displays the subscript in italic font.

Moreover changing the indexed name, as 2D Input, to an Atomic Variable in Maple 2017 will replace it with the double-underscore version. And the palette entry for the literal subscripted name available on the Layout palette also constructs the double-underscore form. So there's no easy way to produce that msub name as above (unless one makes a concatenating procedure to do it).

So it appears that numeric subscripts in atomic names -- that appear with upright roman font in typeset output -- are possible,  but only with inconvenient input. And they won't survive copy&paste.

 

@Chrras Save an empty Worksheet, to which you've made those settings, somewhere on your computer that you won't delete.

Then use the menubar and change your default Start Page to that. Ie, on the main menubar select Tools -> Options -> Interface and then change the Open worksheet at startup drop-menu item to be Specified worksheet . That's open a popup that lets you choose the customized empty Worksheet that you saved.

At that point you'd be able to use the Start page item on the menubar (its icon looks like a house, it's in the middle), instead of File -> New .

@das1404 Try this in your older version.

restart;

with(plots):

m1:=70.0:  m2:=25.0:  m3:=3.0:  g:=9.8:

Sys:=[T+N1-m1*g=0, N2-N1-m2*g=0,T-N2-m3*g=0]:

solvec:=fsolve(Sys);

{N2 = 450.8000000, N1 = 205.8000000, T = 480.2000000}

(1)

raw:=convert(evalf[4](solvec), list):

sol:=eval([N1,N2,T],raw);  # Extract numeric values

[205.8, 450.8, 480.2]

(2)

A:=plots:-implicitplot3d(Sys, N1=0..300, N2=0..600, T=0..600, style=surface, color=[yellow, "LightBlue", green], axes=normal):  # Three planes

B:=pointplot3d(sol, color=red, symbol=solidsphere, symbolsize=18):

display(A, B, lightmodel=Light4, glossiness=1.0, orientation=[56,72]):

@Christopher2222 What has changed, it seems, is that in Maple 12.02 the Statistics:-MovingAverage command did copy over attributes from its input Array to its returned Array. But in Maple 2017.3 that does not happen. I've edited my Answer above to mention this. I don't see how it would make sense for MovingAverage to simply copy over audio qualities which imply rate of play or duration (sampling rate), since the output length needn't match the input length.

Moreover, the calls to the deprecated command evalm are not needed here.  Eg,

restart;
with(LinearAlgebra):
for n from 5 to 8 do:
  A[n]:=Matrix(n, (i,j)->piecewise(i=j,4, j=i+1,3, j=i-1,5, 0));
  P[n]:=Determinant(1-t*A[n]);
end do:
seq(P[n], n=5..8);

@evanhowington It doesn't usually make much sense to help someone "increase" their RAM usage. There are some situations where RAM usage and timing performance can be involved in a trade-off. But those situations relate to specific programming techniques, and as yet you haven't shown us any use of such by yourself.

And I don't see how that applies to the isprime command in the case that the work is shunted off to a GMP function.

By default Maple is not restricted in accessing RAM that it needs, up to the point that the OS can supply it (if that's what you mean). There are settings to limit its RAM use, but that's the opposite of what you've asked.

Or are you asking about something related to your own code that you're writing?

I am having difficulty following your explanations and questions.

Please do not change the Subject line of this Question. If you want to ask a programming question about RAM usage then feel free to post a new Question, as it doesn't so far seem related to this original posted Question (about where computation takes place and how to see progress).

@evanhowington What do you mean when you write of a "new" prime?

@asukumari A misspelling that is similar to a keyword is not necessarily a keyword error. You could have been trying to make a statement with the perfectly fine name locals, but have omitted the operator or terminator. The faulty version is not unambiguously wrong.

If I fix the typo, changing locals to local for the code as 1D Notation in an Execution Group then when I hit the Enter key the cursor is placed on the line,

    end if

Here too there could be more than one interpretation of what was intended. But the syntax problem is at that line, and the line is indicated. You are missing a statement terminator there.  (dharr already told you that he had to fix some missing statement terminators as well.)

First 263 264 265 266 267 268 269 Last Page 265 of 592