MaplePrimes Questions

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.

How to I get MapleTA's eqution editor to work on a Mac? I can't get the applet to start in Firefox, but I can with Sea Monkey. Even so, I can't get the pallets to appear. Anybody know how to do this?

 

 

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

Dear All,

I'm creating matrix questions and wish to dynamically set the size of the matrix. So I'm trying something like this:

\qutext{Find the transpose of the matrix $$A=\left[\begin{array}{ccc} 1 & 2 & 3\\ 0 & 1 & -2\end{array}\right]$$}

\code{$a=3;}

\size{$a}{2}
 

<snip>

But this doesn't seem to work.

 Thanks

 Colin

 

 

Dear All,

Whenever I import a question bank I get the following error:
 

Error Message:

Errors loading the question bank, first : Reason: Error at line 0. Stream closed

However, the question bank seems to have imported correctly. Any thoughts?

Thanks

Colin

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 2270 2271 2272 2273 2274 2275 2276 Last Page 2272 of 2426