MaplePrimes Questions

After understanding how one part of code works i also see that it uses trick of eval (namely "procedural substitution"):

restart;
r:=f(g(u), h(w)):
eval(r, [g=proc() ll; end proc]):

gets full substitution with arguments

and

restart;
r:=f(g(u), h(w)):
eval(r, [g=ll]):

do simple one 'by name'.

Where can i read about that?

If you look at Maple help on Grid[Launch] command there is an example of checking the prime numbers.

I do not understand why the timingData variable is empty after specifying it in exports parameter.

When I do not specify it in the exports parameter, the timingData variable has the same value as it had before calling Launch command.

Hi,

can you help me, I want to make a convolution on this :

 But I really do not know how to deal with the diff...

 

Thank

Sorry for my english

Hey you guys!

 

When I open up maple 15, a few lines saying the following appears:

 

Error, (in with) Arccos is not a command in the grader package
Error, (in with) Arccos is not a command in the grader package
Error, (in with) Arccos is not a command in the grader package
Error, (in with) Arccos is not a command in the grader package
Error, (in with) user level initialization for package `plots' failed: Arccos is not a command in the grader package

Hello,

i am currently trying to get some equation of motions. For this i have to invert a matrix which looks like this:

A = GL * M * GL.'     (6x6)

M is the massmatrix. GL is a matrix with kinematic constraints because i am working on a closed loop subject. The problem is that GL consists of symbolic trigonometric terms which i can't replace with numbers. Because of the multiplication with the transpose and the massmatrix the elements...

For any positive integer, N, I need to create an N by N matrix whose (i,j)-entry, i-th row, j-th column, is (((1+j-i)*N+j)/(2+j-i)!) *z(2+j-i) for indeterminates z(0),z(1),z(2), etc. and z(k)=0 for k<0. How can I do this?

Let's say if given a expression y(x)=1/x+sinx, how to find the equation which y(x) satisfies by using Maple?

hi everyone,

im currently a student and am having trouble with this question

write a procedure so that Maple performs a trapezium rule aproximation of the integral of f(x) when you enter the  command TrapRule(f(x), N, a, b) where N is the number of intervals and a and b are the lower and upper bounds of the integral.

i dont necessarily want the answer, just as much help as possible,

 

Thanks

In next code g is evalhfable while MainF is not. Is it possible to create appropriate local in IntermediateCalc cover (via appropriate assignments) for fres2 to get MainF evalhfable too? ex.mw

Where can i read about logic of assignment in maple? In all normal languages
c:=0;

c:=c+1; returns c to 1.

While maple gets into reccursion. Why politics of assignment was made so? Why imstead process all previous assignments maple also seems to process current one while calculating rhs (or lhs via evaln)? Where can i read about that and how actually assign value to expression without postprocessing of current operator ?

I have a for loop :

for n to 20 do 'A'^n = A[1]^n end do

Is it possible to change the way the output is displayed ? Right now its just on in one collum in the document, and a row for each do. Is it possible maybe to set it up in 2 collums or even 3 ?

Dear Forum

Lets say, I use the simplify function to process some expression and it returns x*x. On the paper, I find x^2. How can I use Maple to verify that x*x==x^2?

 

Thanks for any hints.

How to do subj? Straightforward way doesn't compile:

restart;

myint:= proc(u::float)::float;
return int(exp(x^6), x=0.0..u);
end proc:


createcomp:=proc (expr::evaln, exprfunc::evaln);
exprfunc:=(v::float)->unapply(evaln(expr),a)(v);
return Compiler:-Compile(exprfunc,optimize);
end proc:
global_expr:=myint(a)+a^a;
s:=createcomp(global_expr, global_exprfunc);


"Error, (in Print) cannot translate value of lexically...

How can i trunc (find closest integer) each element in a matrix ? 

This is my matrix equation:

for n to 20 do 'CD'^n, 'F' = evalf(C[1].D[1]^n.F[1]) end do

And i want to show  "trunced" results

How can the ?DifferentialGeometry package be used to apply a vector (derivative) to a scalar?  I thought Hook might be used here, but I don't know that there is a way to express a scalar as a 0-form.  Consider

with(DifferentialGeometry):
DGsetup([x,y],E2):
Hook(D_x, x^2);
Error, (in DifferentialGeometry:-Hook) expected 2nd argument to be a differential form or bi-form. Received x^2

First 1798 1799 1800 1801 1802 1803 1804 Last Page 1800 of 2430