Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I am trying to construct a random set of angles measured in degrees with pairs that are the equivalent in radians.  for example [0,0],[90,Pi/2],[-30,-Pi/6],etc...  but completely random.

so far I have the following:

restart;
randomize();
a := rand(-90 .. 90);
seq([a(i), convert(a(i)*degrees, radians)], i = 1 .. 4);

the trouble is it appars it is randomizing a both times it is called in the sequence.  I would like to have it randomize for each iteration in the sequence.

thanks in advance.

hi
I want to solve a pde equation:
 

equa1 := diff(u(x,y), x, x)-y(1+x) = 0;

# with codition:

con:=u(0,y) = 0, (D(u[x]))(0,y) = 0;

the anwer must be :    u(x,y)= y(x2/2  + x3/6)
How can i solve that with maple?

Please excuse my bad English
thanks

I am plotting a pair of lists of points using

pointplot(Listap, Listbp, symbol = point, symbolsize = 1, size = [1200, 1200])

 

How could is do this with plot so I can add colours? Along the lines Listap(i)^2+Listbp(i)^2 =R, R is in the range 0..1,then colour =R*256 or any other imaginative way of adding colour.
 

restart

with(plots):

with(plottools):

``

``

NULL

``

z := (m+I*n)/(p+I*q)

(m+I*n)/(p+I*q)

(1)

g := proc (z) options operator, arrow; (z-I)/(z+I) end proc;

proc (z) options operator, arrow; (z-I)/(z+I) end proc

(2)

bz := simplify(evalc(Im(z)));

(-m*q+n*p)/(p^2+q^2)

(3)

a := simplify(evalc(Re(g(z))));

(m^2+n^2-p^2-q^2)/(m^2-2*m*q+n^2+2*n*p+p^2+q^2)

(4)

b := simplify(evalc(Im(g(z))));

(-2*m*p-2*n*q)/(m^2-2*m*q+n^2+2*n*p+p^2+q^2)

(5)

``
"  r:=15;   Lista:=Vector();  Listb:=Vector();  j:=1;  for m from -r to r do   for n from -r to r do   for p  from -r to r do   for q from -r to r do  if p<>0 and q<>0 and m^2-2 m q+n^2+2 n p+p^2+q^2<>0 and bz>=0 then  Lista(j):=a; Listb(j):=b;  j:=j+1;  end if;  end do:  end do;  end do;  end do:  j; :"

435713

(6)

``

``

``

``

``

pointplot(Lista, Listb, symbol = plottools:-point, symbolsize = 1, size = [1200, 1200])

 

NULL

``

``


 

Download 096-Chayley_transform_for_MP_question.mw

Hello,

On a plot, how do I change the size of the probe info text box ? I cannot read the very small text displayed when the probe info is active. My laptop screen size is only 13 inches.

Thank you

So I have the following:

And I want to create an animation similar to something like:

Not necesarily 3D. Just the interative slider part. 

I want to create a slider that adjusts the value of the exponent k1 (from the red curve) from 1 to say, 1000. 

I also want it to show the corresponding value of  G[1] on the application.

I'm sure its pretty simple, it's just that I have no idea where to start.

 

Hello I have the following small piece of code.

XMLTools[Print](MathML[Export]('sin(theta)'=0.25));

which exports sin(theta)=.25, how do I force the 0 to display.

 

Also

why does the following fail:

sol:=solve([cot(x)=2,x>=0,x<2*Pi],x,AllSolutions, Explicit);

How do I get a system solve to dispaly an ordered triple and not {x=ans, y=ans, z=ans}

for instance

sys := { z = 4, x+y= 10, x-y = 5 };
L:=solve(sys, {x,y,z} );

displays

{x=7.5, y=2.5, z=4}

I want 

{7.5,2.5,4}

I have a piecewise that exists on a large intervals, say [-5..15], however, I know need the function to represent [1..9].

There are two approaches I know of: using convert(f,pwlist) or using op(n,f), see attachments. PiecewiseTruncate.mw    and  PiecewiseTruncate.pdf

However, these two methods are not elegant enough, I have to reassemble the pieces in the new function.

How to make the solution neat?

Thanks,

I really want to use if condition inside of eval and sum, example as below:

sum(eval(y=x^(j),(if j=1 then x=2 else x=3 fi)),j=1..2)

The reason is: the value of x to be evaluated depends on the value of j which differs inside of the sum (in the context of B-spline functions).

Any lights? Thanks,

i tried to solve a nonlinear ode with numerical method but maple can't solve it and this error occur:

Error, (in dsolve/numeric/bvp) initial Newton iteration is not converging

my maple codes are attached below:

numeriacal_sol.mw

can any help me?

Hi everybody,

I face the following problem :
I develop a Maple simulation code with its own maplets-based interface, and I would like to draw up an "execution report" that presents many informations in a smart and synthetic way :

  1. a summary of the data the user provided through the interface (numerical values, files, ...)
  2. the results of some preliminary operations (ie. the construction of the equations to solve)
  3. some plots of the numerical solution (typically of an ode system)

This execution report should mix texts, plots, charts, ...
At least, I would like the report to be written in LaTeX.

I use to use the software R which provides some facilities to build reports of this kind  (packages knitr or Sweave for those who would know) , and I am wondering if there exists something comparable in Maple ?
Could the DocumentTools package (I know by name only) help me ?
 
More generally, if you were faced with such a problem, how would you deal with it?

As always any suggestion or advice will be greatly appreciated

Thanks in advance

Hello,
I need to formulate the follow relationship in proper math symbols:

Differential in A (last days value minus today's) has a tendency to reach the Differential in B (today's)

I though this could be expressed with

AΔ -> BΔ

BUt I guess there are more elegant and mathematically correct ways to do this in Maple?

thank you!
Dave

Lets say you a country where the official government debt (not adjusted for who owns the debt) is 30% of GDP. The official government debt consist of 50% government bonds and the central banks owns 40% of these government bonds. Since the government finance the centralbank we have to adjust the official government debt and remove the 40% of the government bonds that the centralbank own to get the real government debt expresed as % of GDP. In my initial calculation I simply did like this:

Real government debt expressed as % of GDP = 0.3*(1-0.4) =18%

However, that such number does not take into consideration that the official government debt is only made up of 50% government bonds. I tried to play around with different types of equations but I found none that makes any logical sense and provides me with a reasonable number. I would expect the real government debt to around 23% of GDP. This might be a simple question but I must admit I am stuck and I am not making any progress.  Any help would be appreciated.

 

I am very pleased to announce a new user community centered around Maplesoft's online testing and assessment and courseware products. The new site is specifically for instructors and administrators currently using Maple T.A. or Möbius. This community of users are a small, specialised group who we want to bring together so they can share ideas and best practices. To find the community, go to either mapletacommunity.com or mobiuscommunity.com.

"The Maple T.A. Community has grown organically to support new developers as they pool their knowledge and queries. This has resulted in a fluid searchable structure, with answers available for all levels of question - from beginner to pushing the frontiers of what Maple T.A. has been designed to do. Our summer student interns rely on the Community as they become proficient in their question writing skills - and many have become contributors as they realise that they are in a position to teach others. Opening it out more broadly will be great in sharing good practice on a 'need to know now' basis.”

----Professor Nicola Wilkin, University of Birmingham

 

What content is in the community?

The community has many posts from active Maple T.A. and Möbius users from beginners to advanced users. The site is broken down into categories like 'Best Practices' - longer form posts that cover a broader concept in more detail and 'Quick Code snippets' that are small piece of code that you can drop straight into your question algorithms.

Much of the content is openly available and can be found by google, however there is additional content that can only be accessed by members of the community, such as the Maple T.A. school material which teaches you how to author content in Maple T.A. and Möbius.

 

Who runs the community

The community is jointly run by users based at the University of Birmingham, TU Wien, The University of Turin and TU Delft.

 

How does this fit into Mapleprimes?

It began as an offshoot of a private, internal customer forum. As this community grows, the ultimate goal is to eventually roll it into MaplePrimes proper. But this alternative site gave us the quickest way to get up and running. Maple T.A. and Möbius questions and posts are still welcome on MaplePrimes, and will continue to be monitored by Maplesoft.

 

How do I access the community?

You can find the community by going to either mapletacommunity.com or mobiuscommunity.com.

 

Where else can I get support for Maple T.A. and Mobiüs?

Official support for Maple T.A. and Möbius is provided by the wonderful Customer Success Team at Maplesoft. You can contact them at help@maplesoft.com. For other contact methods see www.maplesoft.com/support/.

 

As I understand it, Maple will detect and use the available cores in a system, if the calculation is suitable for multi-core use.

As I am installing Maple on a multi-user cluster, using a scheduler to run maple scripts, I want to ensure the maple jobs only use the number of cores allocated to the job.  

Is it possible to set the number of cores used ? 

If I have misunderstood how Maple works (I am new to it), or if there is a section in the documentation which explains this, please point me in the right direction.  I haven't found this info so far.

First 962 963 964 965 966 967 968 Last Page 964 of 2215