Fereydoon_Shekofte

Mr. Fereydoon Shekofte

223 Reputation

12 Badges

15 years, 63 days

Social Networks and Content at Maplesoft.com

I Wish To Become As Famous As Albert Einstein

MaplePrimes Activity


These are questions asked by Fereydoon_Shekofte

for example i want to save the Square root of 2 to 1000000 decimal place to an ascii text file ...

i used the writeto command after evalf[100](sqrt(2)) for but it contains line breaks and \ character in output !

but i only need the pure continues 1000000 digits !

please guide me on this simple request ?

i have a work on Magic Squares , and i need to rotate or flip them to all 8 possible directions .
but i am confused to find such special commands in maple for doing my purpose !

may you guide me how can i do this programmaticaly ?

 

order4 := Array(1 .. 4, 1 .. 4, {(1, 1) = 8, (1, 2) = 11, (1, 3) = 14, (1, 4) = 1, (2, 1) = 13, (2, 2) = 2, (2, 3) = 7, (2, 4) = 12, (3, 1) = 3, (3, 2) = 16, (3, 3) = 9, (3, 4) = 6, (4, 1) = 10, (4, 2) = 5, (4, 3) = 4, (4, 4) = 15}, datatype = anything, storage = rectangular, order = Fortran_order)

order4 := Array(1..4, 1..4, {(1, 1) = 8, (1, 2) = 11, (1, 3) = 14, (1, 4) = 1, (2, 1) = 13, (2, 2) = 2, (2, 3) = 7, (2, 4) = 12, (3, 1) = 3, (3, 2) = 16, (3, 3) = 9, (3, 4) = 6, (4, 1) = 10, (4, 2) = 5, (4, 3) = 4, (4, 4) = 15})

(1)

``


Download magicsquare4.mw

1 heading 1

   1.1 sublevel 1

         1,1,1 subsublevel

    1.n sublevel n

2 heading 2

 

i confused for finding a very special command that can join a "set of values" to a "set of indices " ?

also i can't use the map command for this ( guide ? )

like this :

{(1,1),(1,2),(2,1),(2,2)}

{1,2,3,4}

i want to join the two sets to form a complet set of equations index :

{(1,1)=1,(1,2)=2,(2,1)=3,(2,2)=4}

since this is just a simple example , but i need an efficent way for doing it in large size data (image processing)

appreciate for answering !

 

for example:
i want to know how many numbers generated in this loops

 

[seq([seq(i, j = i .. 5)], i = 1 .. 5)]

[1, 1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3], [4, 4], [5];

 

as if there is no way that can make a "++" increment operator in maple 12

1 2 3 4 5 Page 3 of 5