MaplePrimes Questions

Hello,

                 Is it possible to view a table of values of a function? if yes please help. For example in TI calculators a table can be viewed after plotting a graph.

for example

f(x) = x

x         f(x) 

1         1

2          4

Basically what I would like to do, which seems self-explanitory but is obviously not in the right language for maple is this (this is for a local M within a procedure where P is a matrix already defined).

TemplateMatrix:=proc(P) local M;
M:=Matrix(3, if P[i,j]=1 then (i,j)->x[i,j] else (i,j)-> P[i,j]);
M
end proc;

basically what i'm trying to do is turn P which is currently just a matrix of numbers into a matrix which has variables where the number 1 was previously an entry.
 

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.

Dear All,

Does anyone actually use the latex facility with MapleTA? The more I look into it, the more I think that's the software is too buggy to be useful (that's the view that is echoed in past forum posts by other users).

The Maple TA documentation stats that you can author questions using the question bank, .qu script file or latex. Is there any documentation regarding the .qu script files? I've found only basic documentation regarding latex.

As an aside by current latex problem is using 'Maple' type questions, e.g.

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.

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

First 2272 2273 2274 2275 2276 2277 2278 Last Page 2274 of 2428