MaplePrimes Questions

Dear Maple community,

I've added a label to one of my plot similar to (a+b+c)/a. How can I prevent Maple from rearranging it to (c+a+b)/a? I think it might have something to do with typeset..?

Thank you very much for your support!

Claudio

Dear Maple community,

I just recently purchased Maple 2016.2 Student Edition for my bachelor thesis and ran into an issue I was unable to resolve myself, maybe I didn't find the right English search terms..?

I need to use a small greek gamma with a horizontal bar above it. I know how to use accents, though, in output the bar is missing and this seems to apply for gamma ONLY. Is it just me or is it a bug maybe? I used exactly the same procedure to enter all variables.

The same problem returns when I try to add gamma to a plot label, so I think it's somehow connected.

From what I gathered so far, maybe it's possible to work around by editing some sort of Maple source code..? But I wouldn't know how to do that, so any help would be very much appreciated!

Thanks in advance and best regards from Germany

Claudio

While coding I used _ instead of subscript which I now want to change to create a presentable document.

Does anyone know how I can change all underscores to subscripts at once without going through every single element?

greetings,

Vince :)

What's the best way to read data from a text file where say there are 3 columns separated by say 5 spaces.  However the first column is a column of names, just as a simple example

green beans     50     12
potatoes     20     15
red peppers     10  10
tomatoes     5     5

readdata takes each space as a column separator.

readdata("c:/test.txt",string,3)
                                     

How do I work it so that I keep the name identifiers in one column?

 

***
Using ImportMatrix I keep getting error
ImportMatrix("c:/beantest.txt",delimiter="     ")
                              Error, (in ImportMatrix) cannot interpret file
 

How do you recommend to calculate the square root of big Matrices (e.g, 300*300) with Maple??

My machine couldnt calculate the square root of Matrices (9*9) as you see below:


 

``

restart

Error, invalid input: with expects its 1st argument, pname, to be of type {`module`, package}, but received shareman

 

with(LinearAlgebra):

``

A := Matrix([[1, 2, 3, 4, 5, 6, 7, 8, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8, 9]])

A := Matrix(9, 9, {(1, 1) = 1, (1, 2) = 2, (1, 3) = 3, (1, 4) = 4, (1, 5) = 5, (1, 6) = 6, (1, 7) = 7, (1, 8) = 8, (1, 9) = 9, (2, 1) = 9, (2, 2) = 8, (2, 3) = 7, (2, 4) = 6, (2, 5) = 5, (2, 6) = 4, (2, 7) = 3, (2, 8) = 2, (2, 9) = 1, (3, 1) = 1, (3, 2) = 2, (3, 3) = 3, (3, 4) = 4, (3, 5) = 5, (3, 6) = 6, (3, 7) = 7, (3, 8) = 8, (3, 9) = 9, (4, 1) = 9, (4, 2) = 8, (4, 3) = 7, (4, 4) = 6, (4, 5) = 5, (4, 6) = 4, (4, 7) = 3, (4, 8) = 2, (4, 9) = 1, (5, 1) = 1, (5, 2) = 2, (5, 3) = 3, (5, 4) = 4, (5, 5) = 5, (5, 6) = 6, (5, 7) = 7, (5, 8) = 8, (5, 9) = 9, (6, 1) = 9, (6, 2) = 8, (6, 3) = 7, (6, 4) = 6, (6, 5) = 5, (6, 6) = 4, (6, 7) = 3, (6, 8) = 2, (6, 9) = 1, (7, 1) = 1, (7, 2) = 2, (7, 3) = 3, (7, 4) = 4, (7, 5) = 5, (7, 6) = 6, (7, 7) = 7, (7, 8) = 8, (7, 9) = 9, (8, 1) = 9, (8, 2) = 8, (8, 3) = 7, (8, 4) = 6, (8, 5) = 5, (8, 6) = 4, (8, 7) = 3, (8, 8) = 2, (8, 9) = 1, (9, 1) = 1, (9, 2) = 2, (9, 3) = 3, (9, 4) = 4, (9, 5) = 5, (9, 6) = 6, (9, 7) = 7, (9, 8) = 8, (9, 9) = 9})

(1)

MatrixFunction(A, sqrt(v), v)

Error, (in LinearAlgebra:-MatrixFunction) could not compute finite interpolating value by evaluation of (1/2)/v^(1/2) at eigenvalue 0 which has multiplicity greater than one in the minimal polynomial

 

``

``

``

``

``


 

Download askkk.mw

I am trying to use global optimization to solve a problem, but get an error:
 

> GlobalOptimization:-GlobalSolve(R, {eq}, h = 50 .. 10000, R = 50 .. 10000, maximize);


Error, `GlobalOptimization` does not evaluate to a module

What is meant by this error?

I am wondering if I can use MAPLE to solve PDE set with one initial value problem for "q" and a boundary condition problem for "p". "q" need to be integrated over time, and for each time step, after updating "q", I need to solve poisson equation for "p":

diff(q(x,y,t),t)=-diff(p(x,y,t),x)*diff(q(x,y,t),y)/cos(xy)+diff(p(x,y,t),y)*diff(q(x,y,t),x)/cos(y)+b*cos(y)^2*diff(p(x,y,t),x)+F(x,y)

diff(p(x,y,t),x,x)+diff(p(x,y,t),y,y)+c(y)*p(x,y,t)=q(x,y,t)

IC: q(x,y,0)=q0(x,y)

BC: periodic in x, second type BC in y.

Many Thanks!

Wanying

 

I am trying to solve a constrained maximization problem. 

The starting function is the one at the top in bold. Whenever I use (1/2) or (1) as an exponent for either of the variables I get unwanted results. For x2 (below) I am getting that result. I should be getting x2= (3m)/(5P2)

However, whenever I input an exponent that does not equal (1/2), I get the results I want.

 

What am I doing wrong?

Hi,

Can somebody help me to find out why Maple can't completely solve this system of differential equations?

The answer to the previous command is

but I don't get the solution for u(x). This should be u(x)=-x+x^2/2.

Thanks for your help

 

I want to build interacitv plot ( slider+plot) ( inscribed cylinder in sphere) ?

Thanks

Hello everybody,

I am trying to solve the following integral which also has summation but it gives me strange results. Do anyone know if I am doing something wrong?

The equation is in black and the strange result is in blue.

Thank you !

Hello,

Whenever I export my Maple code to Latex, every line is exported twice. So the Latex code looks something like this:

\begin{Maple Normal}{
\begin{Maple Normal}{
\mapleinline{inert}{2d}{x := 3}{\[\displaystyle x\, := \,3\]}
}\end{Maple Normal}
}\end{Maple Normal}
\begin{maplegroup}
\begin{Maple Normal}{
\mapleinline{inert}{2d}{x := 3}{\[\displaystyle x\, := \,3\]}
}\end{Maple Normal}
\mapleresult
\begin{maplelatex}
\mapleinline{inert}{2d}{3}{\[\displaystyle 3\]}
\end{maplelatex}
\end{maplegroup}

 

I would be very grateful to anyone who could offer me a solution to this issue :) 

Vince

Greetings,

currently im working on a project in which i basically have to calcuate and plot a little solar system, using newton mechanic. The work is done, but as it appears, the solution simply cannot be true. In the given example you can see that the planets move in more or less straight lines. I presume that the error is somewhere in the solution of the system of differential equations, but i can't see where it is.

I am grateful for every advice.

PlanetenSpacecurve.mw

I m using the follwing commands for ploting the five differnt values of M

with(plots):
SDfd1 := odeplot(dsol[1], [eta, diff(f(eta), eta)], -1 .. 1, color = green, axes = box);
SDfd2 := odeplot(dsol[2], [eta, diff(f(eta), eta)], -1 .. 1, color = red, axes = box);
SDfd3 := odeplot(dsol[3], [eta, diff(f(eta), eta)], -1 .. 1, color = blue, axes = box);
SDfd4 := odeplot(dsol[4], [eta, diff(f(eta), eta)], -1 .. 1, color = black, axes = box);
SDfd5 := odeplot(dsol[5], [eta, diff(f(eta), eta)], -1 .. 1, color = pink, axes = box);
display([SDfd1, SDfd2, SDfd3, SDfd4, SDfd5], labels = ["η", "f ' (η)"],
    labeldirections = [horizontal, vertical], labelfont = [italic, 16], axes = boxed,
    axesfont = [times, 14], thickness = 3);

But i do not want in colors.....i need graph without colors in different styles. how can ? Moreover i need legend which must be in centre of graph or within the box. It must not on left, right ,up or below. can some one help ?

Hi everybody, 

Neither of these questions is vital but answers will be greatly appreciated

-------------------------------------------------------------------------------------------------
Question 1 :
Is it possible to manage programatically the character fonts in a printf command ?
(for instance to print some piece of text in bold font ... without selecting it and clicking the bold B of the toolbar)

-------------------------------------------------------------------------------------------------
Question 2 :

In order to have a nice render, I use to create my own format for printf command. For instance, when I have to “printf” some text I usually compute its length L and my “printf” format constructor contains a command  like  MyFormat := cat(“%”, L, “a”)

Unfortunately the length(…) command seems to be sensitive to accented characters :
                                     For people not familiar with french, "dégénéré"  (note the acute accents) means "degenerate".
length(“dégénéré”) returns 12
length(“degenere”) returns 8
… which of course leads to a very inelegant render, which is all I wanted to avoid

Why does “length” behave this way ?
Is it possible to bypass this annoyance while ensuring “dégénéré” has length 8 ?



Thanks in advance

 

First 1000 1001 1002 1003 1004 1005 1006 Last Page 1002 of 2428