Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Dear Maple users

I am looking for easy ways to manipulate lists. Especially I want to take a list of lists, say:

[[1,3], [5,8], [9,2], [5,12]]

and create a list of the second components:

[3,8,2,12]

Another problem: How do I collect every second element of a list, say:

[4,2,-1,9,5,6,2,0,14,7]

creating [2,9,6,0,7].

I can do it with loops, but I guess there is a smarter way to accomplish these tasks. I was looking...

I noticed, that FileTools[Text][ReadLine] cannot read Cyrillic letter "я" in text files.

My test file containes 6 lines (Codepage 1251):

 Николай Петрович ТРУБЛАИНИ
 "ЛАХТАК"
 Ч А С Т Ь П Е Р В А Я
 НЕМОЙ ПАРОХОД  Г л а в а I
 Ветер налетел неожиданно. С неимоверной быстротой запенились волны. Они приближались к пароходу, стоявшему в миле от берега. Между реями мачт и в надстройках...

Hello everyone!

I have a small problem with setting of name's variable by using for do loop!

Small description of the issue: i have a loop which looks in that way:

for k from 1 to 4 do

y'k':=Matrix[a,b];

end do;

Еventually i want to have, for instance, four matrices with different filling but ranged from 1 to 4:

y1:=...

y2:=...

...

Especially i want to see names of the variables in the abovementioned way i.e. y1 and not y[1]!

I tried the following, but did not get 0. Why not?

>restart;

>b:=3*beta*Pi*(3-4*cos(z)+cos(2*z))/(16*z);

>-b+sqrt(b^2)

 

I know I can do this by hand, but this is part of a larger equation which I narrowed down to this issue.

 

Hi,

I am having some problems when solving NullSpace when the matrix is somewhat 'complicated'.

Maple seems not able to find the nullspace.

Any hints or possible workaround?

Casper

 

nullspa.mw

Hi all,

I 've been using Maple 13 and recentely upgraded to Maple 17. But the following code yielded correct results in Maple 13 but not in Maple 17( gives an error: there is no taylor series expansion, try series).

I think there is some bug or some problem with "mtaylor" of Maple 17. Can anyone verify this?

CODE:

=================

> restart;
> with(VariationalCalculus);
>
> interface(prettyprint = 3);
> with(LinearAlgebra);

Hello to you all. Pls. i just want to ask you guys about which package in maple can I use to solve nonlinear ODEs Also, can I use the Newtons Method?

Iwould like to calculate the inverse laplace transform of the expreesion which I call T.

< T:=tanh(s):

To do this I use the code "invlaplace" to solve it.

<invlaplace(T,s,t)

But it returns "invlaplace(tanh(s),s,t)".Done nothing.How to get its mathematical expression? I am really interested to get it.

PLZ help me in anyway as you can as I am completely stuck.

I wrote a procedure which rounds floats to a specified precision. I would like to apply it to a Matrix/List/Array/Vector that contains non-numeric cells as well as floats. I'm stuck at the type-checking stage.


# Round0 works on floats and lists and Matrices of floats:
restart;
Round0 := proc(x,n::integer:=1)
   parse~(sprintf~(cat("%.",n,"f"),x));
end proc:

Round0(1.23456789);
1.2

Round0([1.23456789,9.87654321],2);
[1.23, 9.88]

Hello,
I'm trying to write a function which is calculating a B-Spline Function. Given is a knot vector U=[u1,...um]. What i want to calculate know is the basis function of degree 0 which is defined by Ni,0(u)=1 if ui <= u < ui+1 and 0 otherwise. I tried to do this with two procs which are leading to the same problem:
procVec1 := proc (U)
m := nops(U);
N := [seq(0, i = 1 .. m-1)];
for i to m-1 do

An analog clock shows the time is 1:15:00.What time all the three indicators are going to meet each other?

Let d be the Feigenbaum delta constant 4.66920160910299067185320382046620161..., a be the Feigenbaum alpha constant 2.50290787509589282228390287321821578... and m be the MRB constant 0.18785964246206712024851793405427323....

d*m - 2 (600 a - 2537)/(5 a - 2373) = 9.232940534412995...*10^-19

or you could write

1/10*(d*m + 564446/(2373 - 5 a)) - 24 = 9.232940534412995...*10^-20

Hi,

I am new to Maple (Version 17) and got some trouble with the solve command:

 

Trouble with solve

The Problem is, that Maple does not find a solution, allthrough there is one :-)

If i put a:=Pi/4 before the first commad, I get one solution, but i want to find the solution in dependence of 'a'.

Also i tried to remove the last equation (a>0...

How to find the sum of the series

sum((x^(3^n)+(x^(3^n))^2)/(1-x^(3^(n+1))),n=0..infinity)

under the assumptions x::real, x<>1, in a closed form with Maple?

it solve result in numeric but not in terms of t, why and where is t?

restart;

equation1 := subs(x=0.5,-(t*x+(1-t)*x+2*x)/(t*y+(1-t)*y+2*y)) –(1-exp(y)) = 0;

equation1fixedx := solve(equation1, {y});

restart;

equation1 := subs(y=-0.1,-(t*x+(1-t)*x+2*x)/(t*y+(1-t)*y+2*y)) –(x+0.08) = 0;

equation1fixedy := solve(equation1, {x});

First 1442 1443 1444 1445 1446 1447 1448 Last Page 1444 of 2229