MaplePrimes Questions

Hello

 

I want to create three matrices, multiply two of them, equate the result to the third, and extract the individual matrix element equations:

A:=Matrix(2,2,[1,2,3,4]);

B:=Matrix(2,2,[2,3,4,5]);
                      
C:=Matrix(2,2,[a,b,c,d]);

I have two symbolic expressions which I think may be equal, one simpler than the other. I'm trying to use "is" to ascertain the equality. I tried things like:

is(expr1=expr2) assuming beta>0 and r>0 and d>0;

which returns false,

but this is what the difference between the two expressions looks like for constellations of parameters:

[okay, so here should appear the graph, but where do I store images and other files in the new mapleprimes?...

I am currently receiving the following error: Error, (in UpdateTrueVelocities) unable to store '100*cos(20)' when datatype=float[8].  I'm not exactly sure why the Maple is complaining about this.  100*cos(20) definitely evaluates to a float.  Any help would be greatly appreciated. Thank you.  EDIT: for some reason, it won't let me add tabs in my code.  Sorry about that.

vel := Matrix(4, 241, datatype = float[8]);

accel := Matrix(3, 241, datatype = float[8]);

I'm just getting started with Maple TA (version 5). Playing with making plots based on algorithmic variables.

I would like to choose 2 random variable to use as x and y values...

$a=range(-5,5,1);
$b=range(-5,5,1);

...and plot the point defined by ($a,$b).

 

I can plot a function using this command...

$plot1=plotmaple("plot($a*x+$b,x=-10..10,y=-10..10)");

hi! i have:

deq := {diff(a(t,y),y,y)/a(t,y) + (diff(a(t,y),y)/a(t,y))^2 - ((diff(a(t,y),t))/(n(t,y)*a(t,y)))^2, (diff(a(t,y),y)/a(t,y))*((diff(a(t,y),y)/a(t,y))+(diff(n(t,y),y)/n(t,y))) - (1/n(t,y)^2)*((diff(a(t,y),t,t)/a(t,y))+((diff(a(t,y),t)/a(t,y))*((diff(a(t,y),t)/a(t,y))-(diff(n(t,y),t)/n(t,y)))))};

i've solved it by using a package: "Formal series solutions to non-linear DE (ODE or PDE) or systems of them
(Cauchy problem)". then, i defined three new parameters:

Hello everyone,

 

Please help me with this:

 

I have a given matrix (with numbers size nxn), within this matrix there is also some parameters. I am asked to find all the b vectors that solves this equation. Important: Firstly, I was asked to find the parameters that gives us Determinant(A)=0.

 

I have a difficulty with 2 parameters or more, and how I suppose to solve this if x and b are (x1,x2,x3)', (b1,b2,b3)' i.e not given.

I have an array of points stored in a matrix, and I want to plot them on a graph along with a couple other polygons.  Here is a short snip-it of code that describes the process:

pos := Matrix(3, 241, datatype = float[8]) #the contents of this matrix are filled out in the program

with(plots);

PositionPlot := PLOT3D(CURVES(pos), COLOR(RGB, 0, 0, 1), TEXT([1, 60, 1], 'pitch', ALIGNABOVE));

HomeplatePlot := PLOT3D(POLYGONS([[0, 0, 0], [.7083, .7083, 0...

I try to make calculation with matrix in matix for example

n1 >0 , n2 >0; n1 ,n2 unknow
matirx  A11 := matrix(n1,n1,[unknow variables ]);
matirx  A12 := matrix(n1,n2,[unknow variables ]);
matirx  A21 := matrix(n2,n1,[unknow variables ]);
matirx  A22 := matrix(n2,n2,[unknow variables ]);

A_big := matrix(n1+n2,n1+n2 , [[A11,A12],[A21,A22]]);

how i will sovle

A_big ^ (-1) ;

The wrong answer is
matrix(...

1) Solve the series using the alternating series method:

12 - 6 + 3 - 1.5... 

I know the answer is 8 because it is in the back of my calculus textbook...I just don't know how it is 8.

 

2) Solve the series:  ((2/k) - (2/k+3)) where k = 1 to infinity. 

I know the answer is 11/3...I just don't know how to get there.

I have a loop that will map specific locations of a set of lists into a new set of lists.

Suppose
a1:=[1,2,3,4,5,6,7]
a2:=[9,8,7,6,5,4,3]
a3:=[4,5,4,5,4,5,4]
:
etc ...

for i from 1 to 3 do
  b||i:=map(a||i->a||i[4],a||i[6],a||i):  #map positions 4 and 6 from a into b
end do:

I get Error, invalid parameters for inline function.

 

 

Hi,

I want to plot a 3D function which is a summation of some other 3D functions (i.e. g(x,y) = f1(x,y) + f2(x,y) + ...). If I add them parametrically as they are, it will be a big parametric function of (x,y) and plotting takes a long time. To overcome the problem, I am thinking of calculating each function (e.g. f1(x,y)) and store its results in a matrix  for each, and then sum up all stored results. First of all, please let me know if there is an alternative...

I've been trying to evaluate another integral, like exp(-(alpha*x)^2) from 0, to infinity;

 

However it expresses the answer as a limit of some function(alpha), how do I get the integral to come out more exactly?

 

Thanks

Hello,
I have to find the internal of
E_field := conjugate((-.7147663039-.8729430992*I)*exp((9.123185068*I)*cos(phi))*cos(phi)+(0.3187576278e-1+0.3371906130e-1*I)*sin(phi)*exp((4.561592534*I)*(-1.*sin(phi)+cos(phi)))+(0.7062621752e-1+.1302618973*I)*cos(phi)*exp((2.000000000*10^(-11)*I)*(53.*cos(phi)+1.570796328*10^11))+(-0.3187599160e-1-0.3371906130e-1*I)*sin(phi)*exp((4.561592534*I)*(sin(phi)+cos(phi))))*sin(phi):

I try to solve by
evalf(simpson(E_field, phi = 0..2*Pi));

How does one read in files with incremental names?

I have

for i from 1 to 10 do
   a||i:=readdata(`c:/test/i.txt`,string,7): 
end do:

I don't know how to escape the i out of the quotes so it can be used in the loop. 

 

I was trying to evaluate a 2-dimensional integral, but my answer contained an expression like pi/pi^2;  even trying to simplify this did not reduce the fraction properly. Why does this happen, and how can I get it to display the answer properly?

 

Thanks

First 1984 1985 1986 1987 1988 1989 1990 Last Page 1986 of 2431