Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

There are a number of facilities in Maple which may be extended. Included amongst those are `type`, `print`, `evalf`, and `latex`. The help-page ?extension_mechanism claims that all the built-in functions allow for extension. It also mentions a few system Library routines such as `verify` (but does not mention `latex`).

There are some descriptions of varying completeness in a few...

I'm a very new user - apologies if this is answered elsewhere on the forum - I've tried searching but haven't found the answer.

I'm trying to evaluate something which relies on the fact that sin(nPi)=0 for integer n. How do I get Maple to do this? I have tried:

a:=m*Pi   (sorry - haven't worked out how to post actual Maple input yet)

m::integer

y:=sin(a)

But when I evaluate this, it just gives me sin(m*Pi); if I put in a numerical value for m then I do get zero; but I need it to recognise this is the case for any integer.

I am trying to plot the solution of a procedure beta_k(P) vs the input P; however, the solution is a pair of values (k, beta*) and I do not know how to isolate the individual values of the solution.  Thank you for your assistance.

I have a proc and I want to test if the function is odd.

The following is wrong, but could you modify it to work well?

smth:=proc(f::algebraic,x)

if  simplify( f(x)+f(-x) )=0

then print("f is odd");

end if;

end proc;

In the proc argument there is x because x is the variable of f,  for example  f  may have other

parameters,   (in mathematical notation)  f(x)=ax+3.

Thanks,       Sandor

 

 

In Maple 11, how do I graph (and solve) a set of 3d inequalities (in x, y, z) to show the feasible set and the vertexes ?

yes, basically i just want to call something "y at x=0", just to make the final presentation of my results better. Is there something similar to # that will stop maple getting confused by the space of the equals sign, and just ignore it as comment/description?

Download 7904_P3HT.mws
View file details

 

I am trying to find parameters using NonlinearFit and keep encountering the following message:

'Warning, limiting number of iterations reached'

I have not been able to figure out how to overcome this warning - the fits I am getting are
 not very good.

This is mainly an aesthetic thing, but I'm finding an interpolating quartic polynomial given some data points, so I set up a Matrix system of linear equations etc, but I want the output solution vector (i.e. the solutions for the coefficients of x, x, x, etc.) to be to 3sf. I have tried putting evalf[3](LinearSolve(A,b)); but that doesn't seem to work. Even if I change Digits, (which isn't ideal anyway as I only want output to be to 3sf temporarily) the values in the vector solution are still to 10sf.

Dear all,

In the attached file there seems to be a little calculation bug.

Simply let the file run through. In the fourth line from the bottom CSBt equals a number greater than zero. I copied the same expression in the file's very last line. There the result of CSBt is zero.

The identical expression gives two different results. The "correct" result is zero.

It seems to me that the file is somehow damaged. Has this happened to anyone before and what can you do about it?

Many thanks for your help!!

Florian

I'm trying to use Physics package of Maple 11 to perform some basic QFT calculations. I need to calculate traces like Trace((p[mu]*Dgamma[mu]+m)*(k[nu]*Dgamma[nu]+m)) but it seems that maple can't compute this. Am I doing something wrong or is this a limitation of Maple ?

I would like to print on the screen

[; -T\leq x\leq T ;]

where [;T;] is a variable which obtains its value from calculation, and [;x;] is a string only.

I tried 

T:=2;

Error, unexpected relational operator

Is it possible to solve this problem?

Sandor

 

 

I have a procedure

smth:=proc(T::positive)

bbbb;

end proc;

 

When I type  

smth(Pi);       or     smth(pi);    

I obtain the error message

Error, invalid input: smth expects its 1st argument, T, to be of type positive, but received pi

How can i give the Pi/pi to T  if I want to keep  the T::positive  ?

(evalf is not acceptable.)

 

Sandor

How do I add a new line in the middle of an existing execution group without using split/join commands in Maple 11.

 

 

What is wrong in here, please help:

 


dustplot0:=(points)->odeplot(duffing, [x(t),y(t)], 0..(2*Pi*points), numpoints=points);
plot1 := dustplot0(100):
plot1;

plot2:=PLOT(POINTS(op(op(1,op(plot1))),COLOUR(RGB, 0, 0.2,0.5),SYMBOL(POINT))):
plot2;
Error, invalid input: op expects 1 or 2 arguments, but received 3

I do not understand the reason for this error.

 

Thanks
 

My problem is that Maple does not give answer at all for the initial value problem, so I need a help. If does exist a solution how can I obtain it?

Thanks in advance,  Sandor

infolevel[dsolve]:=5;
                                      5

First 2074 2075 2076 2077 2078 2079 2080 Last Page 2076 of 2224