MaplePrimes Questions

Usually maple displays legend as either a colored line or symbol. If pointline is used in the structure of the command the plot is displayed as both point and line while the legends appear as a colored line, Is there a way in which the curve will combine both point and line and the legend(s) will be strictly point?

Thank you and kind regards

Hi everybody, 

I have a continuous function f of a single variable (all the details can be found in the attached file) and I want to build a more regular approximation of it (let's say F). The construction process ensures that F is C-infinite.

When I plot f and F (command "plot"), for visual comparisons, the F curve presents "holes", that is intervals where there is no plot.
However, the value of F(x) for any x in those void ranges is a real just as F(y) is for any y in a plotted interval.

Note that this phenomenon does not appear  when I use PLOT(CURVES(...)) for F (attached file)

I guess I probably use "plot" in a wrong way, or maybe some option I don't know
 could prevent it to happen ?

Could you please have a look to the attached file ?
I look forward for your response.



LacunaryPlot.mw 

Assume you have a matrix A and somewhere you want to make a copy of it like B and working with them independently. Let's say you have a loop and after doing a proc on B again you have to make it equal to A. So changes on B shouldn't effect on A. What is the common way of taking such copies of A in Maple?

The following methods don't work.
 

A:=Matrix(3);
B:=A;
B(1,1):=1;
A;
A:=Matrix(3);
B:=subs(B=A,B);
B(1,1):=1;
A;

What I came up with is the following but it will look weird if one really needs to write something meaningless like *2/2.

A:=Matrix(3);
B := (1/2)*subs(B = 2*A, B);
B(1,1):=1;
A;

 

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

First 880 881 882 883 884 885 886 Last Page 882 of 2308