MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.

Can the size (width, length) of a 2D plot be specified programmatically? In particular, when a document is re-executed, I would like the graph outputs of plot(...) to be automatically sized to pre-defined values, for example to fit a full page. Right now, I am having to re-size each of my plots manually. For creating a report with many graphs, this is annoying to do and leads to plots that are not always exactly the same size.

I am thinking of the equivalent of ...

> plot(x^2,x=0..2,[width=6in,height=8in])

or ...

Does any way exist to bind keystrokes to menu commands? In particular, I frequently use sub and superscripts in text (I'm doing lots of chemical formula). That I have to search to a sub-sub-menu level to make these changes for individual characters is constantly annoying. Binding specific keystrokes (ctrl-underscore and ctrl-plus for example) to change character styles would be most useful in this case.

If this is not possible to do, consider it a feature request!

--

JJW


Download int_vs_sum_for_mr.mw

Looking at the attached worksheet,

it appears that the absolute value, minus 1/2, of the integral of (-1)^x*x^(1/x) from 1 to infinity would equal the partial sum of (-1)^x*x^(1/x) from 1 to where the upper summation is even and growing without bound [0]. Is anyone interested in improving or disproving this conjecture? 

 

Hi, I'm looking for a list of all non-isomorphic graphs of small order (on say at most 9 vertices), ready to use in the networks package. Does anyone know if there is such a list out there? Thanks.

This is a follow-up to an earlier post about CovarianceMatrix.

There are several ways in which Statistics:-CorrelationMatrix can be improved.

CorrelationMatrix shares some inefficiencies with CovarianceMatrix, by computing correlations between the n columns, pairwise. But in doing so it also computes...

Hello eveyone,

I'm experiencing a frustrating problem, trying to get maple to solve a system of differential equations. I have defined my system as:

f:=1-2*(n+1)*b*xi^2*nu(xi):

sys:={diff(nu(xi),xi)=(theta(xi)^n - 3*nu(xi)), diff(psi(xi),xi)=(n+1)*b*xi*theta(xi)^n*(1+b*theta(xi))/f, diff(theta(xi),xi)=-(nu(xi)+b*theta(xi)^(n+1))*xi*(1+b*theta(xi))/f, theta(xi=0)=1, nu(xi=0)=1/3};
 

The only part worth concentrating on is the part I've made bold. I then can solve the system near xi=0 witha  series solution:

Hi there,

I have a 2-D ODE system. Objective: plot the nullclines and phase diagram around the equilibrium point. Problem: one of the ODEs has an integral and a call to DEtools[dfieldplot] returns:

Error, (in DEtools/dfieldplot) extra unknowns found

I have created a minimal example below.

I found that the solve command doesn't work properly with some systems of equations containing radicals. For xample: solve({b = RootOf(_Z^3+c^2+1),c = RootOf(_Z^2+_Z+1), b = RootOf(_Z^3-RootOf(_Z^2+_Z+1))}); doesn't return any results and no "_SolutionsMayBeLost" warning. But using solve(convert({b = RootOf(_Z^3+c^2+1),c = RootOf(_Z^2+_Z+1), b = RootOf(_Z^3-RootOf(_Z^2+_Z+1))},radical)); solves the system. What can be done about it to avoid such situations?

Titlefont affects other text elements in an animation. Here is an example.

First, without an animation (works OK, ignoring such things as the plot being higher at 0 than it should, having too many ticks on the y axis, the plot being located too far from the title etc., which are different topics),

Maple 12.01 ID 363216 on MacOS 10.4.11

The only graphics format that Maple seems to accept from the clipboard via copy/paste is TIFF.

Is this correct, or am I missing something? In particular, I would want a way to copy/paste PNG or PDF.

TIA

--

JJW

 

<p>I wrote such a code (in Maple 11)</p>
<p><maple> f := unapply( n+m, m ); </maple></p>
<p><maple>print( f(1) ); </maple></p>
<p><maple>g := unapply( f(m), m ); </maple></p>
<p><maple>g(1) := f(1)+a; </maple></p>
<p><maple>print( f(1) ); </maple></p>
<p> </p>
<p>First print( f(1) ) prints   n+1, while second --- prints n+1+a.  Why?</p>
<p>I suppose that this is because of third line, which Maple interprets <br />
as ' g:= f ' (but it should not). Then changing the value g(1) changes <br />
f(1), too.</p>
<p>Isn't it strange?</p>

Am trying Maple under Linux; have two GUI related questions:

1. Is it possible to change look-and-feel of the underlying Swing GUI?  The default one looks rather ugly...

2. Same note for default fonts used for GUI and document text - the text is not anti-aliased, and it looks rather ugly. So, is it possible to permanently change font(s) used by xmaple?

Thanks.

Hello,

We ran into this problem today during our class.  It appears that the 'int' command truncates Pi at a different digit than we have set, which changes our answer. We expect the orthogonality of the two sin(Pi*x) functions, but there is a sensitive truncation error that we would like to get to the bottom of.

Here is the code:

> Digits:=10;

This is what we expect:

I have been trying to understand Maple's evaluation rules for arguments or parameters as they are passed through procedures, but I am getting confused. Here is an example:

p1 := proc( y )  print( y, 'y', eval(y,1), eval(y,2) ) :  p2( y ) :  end proc :
p2 := proc( z )  print( z, 'z', eval(z,1), eval(z,2) ) :  end proc :

x := ''''5'''' :
print( x, 'x', eval(x,1), eval(x,2) ) :

p1( x ) :

Try to generate a random matrix modulo m using, say, examples from the ?LinearAlgebra,Modular,Random help page.

First 31 32 33 34 35 36 37 Last Page 33 of 79