MaplePrimes Questions

being stalled myself here why don't these work?

for i from 1 to 200 do
  if ithprime(i)=prevprime(500) then print i; end if;
end do;

and

solve(ithprime(i)=prevprime(500),i)

??

What would be a better way?  I could do

for i from 1 to 200 while ithprime(i)<500 do end do; i;
                       ...

 

 

 

 



I am trying to construct a 7x7 matrix T such that T[i,j]=k, when multiply(monoid[i],monoid[j])=monoid[k]

I've defined monoid to be a boolean matrix such that there is at least one 1 in each row and column.

I am just not sure how to get my input to return the matrix. I keep getting a 7x7 zero matrix.

This is what I have:

T[i,j]:= Matrix(7);for i to 7  

do for j from 1 by 1 to 7    

do T[i,j]:=(multiply(monoid[i...

Im building a series of Java applets. My applets have text areas where students will write answers to questions. I am looking for a way to make my text areas be MathML boxes. Anotherwords, instead of adding the answer in normal text (1/2) it will be in Maple format. (1/2) should be a fractions, and not just a string as you see in this post.

Hi,

My data are 3 numbers that evolve in time: it makes a matrix n*3, where n is the number of occurences in time. I want to apply automaticaly a calculation (solution of a polynomial) n times on my data. How do I do that?

Thanks in advance,

Florent

Hi, I have the following problem with Maple 12:

 

all the decimals in plots (tickmarks) are displayed with a comma (e.g. 0,5).

Is it possible to replace the comma by the  point (i.e. 0,5 -> 0.5 ) ?

 

Unfortunately I cant see appropriate setting in the Maple help.

 

However the problem is rather serious: some journals (e.g. Phys Rev D)

require the tickmarks to be written without commas (the

hey there, i have a simple question: lets say i have a list like:

list:=[[1,1],[2,4],[4,8],[5,7],[8,1],[5,3],[4,2]]

for some reason i only need the elements of this list from [4,8] to [5,3]. how do i

select these parts from my original list? (and i dont want to create the new list

by saying: take element 3..6 from list). thanks and cheers

This is my code:

> F := a*c;
                              a c
> K := (a*c)^2;
                             a^2  c^2
> simplify(%);
    ...

Hi everyone,

I'm quite sure that this question has already been answered but I couldn't find any satisfactory explanation (my bad).

I'm wondering why the following expression

 sum(0^k, k = 0 .. 0);
yields 0 as result while

0^0;
returns 1

and 

sum(1, k = 0 .. 0);
also return 1.

I understand that 0^0;

is an indeterminate form so that its evaluation is a matter of convention but Maple's approach...

Hi all,

I want to get the general solution of the Laplace equation with boundary conditions below:

sys[1] := [diff(A(r, theta), r, r)+(diff(A(r, theta), r))/r+(diff(A(r, theta), theta, theta))/r^2 =0, D[2](A)(r, theta0) = 0, D[2](A)(r, theta0+beta) = 0, D[1](A)(R1, theta) = 0, A(R2,theta)=f(theta)];

pdsolve(sys[1]); do not give me the solution

Thank you to help to obtain the general solution and how (the method) to obtain this solution with Maple

the integral int(1/(1-2*r*cos(x)+r^2)^p,x=0..Pi/4), where 0<r<1 and p>1/2, or to find its asymptotics in r as r->1-?     

Thanks in advance.

Hi,

I was trying out piecewise functions as we have a question on them on our assignment. When I did this question in Maple 10 (our uni has this version), I got the answer, but when I type the same thing on Maple14(I use this version), I got the following:

u(x,0) := piecewise(x < -h, 0, -h <x and x <h, 1, h<x, 0);
Error, invalid left hand side in assignment

I know it is something to do with u(x,0...

I made various types of plots with the Plot Builder in Maple 14 and then I continued in the Document editor. When I evaluate the document containing the new plot statements, the Plot Builder dialog pops up repeatedly, seemingly once for every plot I previously constructed in it. This continues even after closing and reopening the document. How can I fix the document so this no longer occurs?

Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student

How can I solve the following differential equation?

with plots

Eq[1]:=diff(f(eta),eta$3)+g(eta);

Eq[2] := (diff(g(eta), `$`(eta, 2)))/Pr+f(eta)*(diff(g(eta), eta));

BCs := [f(0), (D(f))(0), (diff(f(eta), `$`(eta, 2)))(2), g(0)-1, g(2)]

pars := {Pr = 1}

for i to 2 do eq[i] := subs(pars, Eq[i]) end do

eqs := eq[1], eq[2]

vars := f(eta), g(eta)

bcs := op(subs(pars, BCs))

sol := dsolve({bcs, eqs}, {vars}, type = numeric, output = array...

First 1947 1948 1949 1950 1951 1952 1953 Last Page 1949 of 2431