lovinash

2 years, 109 days


These are questions asked by lovinash

Importing from excel

August 21 2011 by lovinash 139 Maple 15

Hello there,

Im using this code

 

> with(ExcelTools);

> L := Import("C:\parameters15.xlsx", "Sheet1", "A2:I2");
 
and I keep getting :     Error, (in ExcelTools:-Import) Could not open the file.
 
What are the possible reasons for this? I have triple checked the file name, location and extension. It's all good.
 
 

Hello all,

I ran this code a few weeks ago and it worked perfectly.. but now that I try it.. it says 'too many levels of recursion' on maple 14 and 'lost connection to kernel' on maple 15. Can someone give me a hint as to what is going on?

I have also attached the file :  allslopes2.mw

Any help is really appreciated

Lovinash

 

Can someone tell me why sprintf wont work in this situation?

 

out-of-balance_final.mw

Exporting to Excel

June 13 2011 by lovinash 139 Maple 14

Hello all,

Im trying to apply the working of the algorithm shown below to a more complex one(attached). The simple algorithm produces separate spreadsheets for different values of j. In the attached algorithm Im trying to produce different spreadsheets for different values of 'angle1'. I have applied the same structure but with no success. 

 

Can someone please have a look at my code and point me to my mistake?

Any help is really appreciated

Simple loop question

June 13 2011 by lovinash 139 Maple 14
Consider the simple loop below:
 
> for q  from 1 by 1 to 12 do;
> 
> if inter[q] <= B then xz[q] := inter[q] end if;
>
> end do;
 
inter[1] to inter[12] is defined previously
B is also calculated beforehand.
 
My problem is that Maple insists on looking for inter[13] and xz[13]. My range is between 1 and 12 so Maple shouldnt be doing this.

Question on memory

May 31 2011 by lovinash 139 Maple

Hello there,

Im running a fairly big algorithmn with a lot of loops , the memory counter is showing 237.89M and its been running for a long time.

The memory usage has been constant for the last 40min, the time counter still going, and the status bar says 'evaluating'

Is the maple still running fine or has maple's or my computer's limit been reached?

task manager is showing a memory usage of 40% and CPU 12%

 

Hey all,

My question is better explained with an example

the algorithm I have here creates a matrix M[j] for each run of j.

I want to be able to export each of these matrices to a different spreadsheet and if possible, set up a naming critiria for each spreadsheet(so that I dont have to enter a name in the dialog box after each run)

Any suggestion will be really appreciated. Thanks

Lovinash

 

here's the example:

Whenever I use polynomial fit, its tells me 'Warning: there are zero degrees of freedom' what does this mean?

is it possible to feed maple with the input parameters and the results and get maple to find the governing equation?

Onscreen printing

July 29 2010 by lovinash 139 Maple 14

hello there

I have an algorithm which perform set of computation(about 500 in all) fifteen time (for... end do) and ive included commands to pick only the values that i need and place them in an excel file.

Maple is printing all the values computed on screen ( all 7500 values!!)  before the little box shows up for me to input the excel filename.

 

how do i get maple to not print all these values on screen and simply ask me where to...

This is what what i would write in Vb. how do I write something similar in maple?

 

For j = 15 To 27 Step 3
                For k from 1 To 3
                    Select Case k
                    Case 1

Hello there,

 

so i have a maple algorithms which produces about a thousand set of results. The algorithms produces about 7 values.. and this is iterated about 100 times.

Is there any way I could transfer all these values into a spreadsheet?

basically I want to end up with a speadsheet with the values from each iteration forming a row.

 

Thanks in advance!

Hello there,  How can I compile this? I used   boundarycompiled := Compiler:-Compile(findboundary)    but this didnt work. Thanks in advance

 

> findboundary:=proc(a,b,c,d,e,f,g,h)  ;
> global A,B,lowerbound,upperbound;
> A, B := solve(a = b, x), solve(c = b, x);
> x1a, x1b := evalf(solve((x-e)^2+(a-f)^2-g^2)); if x1a < x1b then minx1, maxx1 := x1a, x1b else minx1, maxx1 := x1b, x1a end if;
> x2a, x2b := evalf(solve((x-e...

How can i input two equations in maple and intruct maple to find the points of intersection? giving me the coordinates of each point

skipping a loop

February 25 2010 by lovinash 139 Maple

in a loop, how can i instruct maple to skip the loop if a condition is met?

example

for m from 1 to 10 do

for n from 2 to 11 do

if m=n, skip

else carry on with code

end do

end do

so that if m=n=4, maple will skip it to do m=4, n=5

 

thanks

lovinash

1 2 Page 1 of 2