MaplePrimes Questions

i have already release memory with gc() in the most inner for loop ]

,but it still use up my memory

once it printed two lines each time, actually it can release memory

but why it still use up memory

read "D:\\hello.m":
with(combinat):
appendto("D:\\gogogo.txt");
for ii from 1 to 2040 do
for jj from 1 to 2040 do
for kk from 1 to 2040 do
if ii < jj and jj < kk then
if mm[ii] <> mm[jj] and mm[jj] <> mm[kk] then
sol := dsolve([mm[ii],mm[jj],mm[kk]],[a(t),b(t),c(t)]);
print([mm[ii],mm[jj],mm[kk]]);
print(sol);
print("***");
end if:
end if:
od:
gc();
od:
od:

 

i can only think

use c# to generate code with file write, nested for loop every 1000 records 

is it the only way to do?

 

int counter = 0;
for (int i=1; i<=2040; ++i)
{
for (int j = 1;j <= 2040; ++j)
{
for (int k = 1; k <= 2040; ++k)
{
if(counter % 1000 == 0)
{
Console.Write(i.ToString() + ","+j.ToString() + ","+k.ToString());
Console.Write("\r\n");
}
counter = counter + 1;
}
}
}

 

for ii from 1 to 2039 do
for jj from 1 to 2039 do
for kk from 1 to 2039 do
print(hello(ii,jj,kk));
od:
od:
od:

Hello, 

 

I am not sure how to find the Heaviside Laplace transform 

 

H(t-1)e^(3t-3)

 

 

 

 

Thank you:)

hello. I need help in finding the wronskian for any list of functions. i.e. if I input a nxn matrix i want it to calculate the determinant.  like here

with(linalg):
listM:=[sol,diff(sol,x)];
M:= convert(listM,matrix);
det(M);

Hello people in mapleprimes,

I put a function h into my original package named z5.

And, I used it as

> h(x+y);

then, the output is

x*`z5:-h`(x)/(x+y)+y*`z5:-h`(y)/(x+y)

I want to have

x*h(x)/(x+y)+y*h(y)/(x+y),

not z5:-h for h.

How should I do for "h" to be kept from changing  to "z5:-h"?

Best wishes.

taro

 

part other than z5 needs designating a directory for library.**********

>new_lib_dir3 :=Please put an appropriate directory

>z5:=module() option package;
>export numer_expand,h;
>numer_expand := a->expand(numer(a))/denom(a); h:= F-> expand
>(evalindets(D(F)/F, specfunc(D), d-> op(d)*'h'(op(d)))); end module;

>LibraryTools:-Save('z5',new_lib_dir3);
>restart;

>libname:=new_lib_dir3,libname;

>with(z5);

>h(x+y);

               x*`z5:-h`(x)/(x+y)+y*`z5:-h`(y)/(x+y)

 

Hi!

 

Suppose, we need to compute this integral:

int(sqrt(exp(2*I*t)-1),t) from t=0 to t=Pi

If we write this as definite integral, we get right answer: 2*sqrt(2)-(1/2)*ln(17+12*sqrt(2))

But in case of indefinite integral (computing antiderivative) one gets I*arctan(sqrt(exp(2*I*t)-1))-I*sqrt(exp(2*I*t)-1). Substitution t=Pi and t=0 both lead to 0, so we can't transform antiderivative to definite integral. What is the reason?

I have a problem with the right-click command „Unit Formatting“. Here is an example: I am trying to get in result in kW instead of W. This works as long as the value is assigned to the variable using := . If the value is calculated I cannot change the unit.

Right-clicking P and P2 and selecting „Unit Formatting“ I get the following selection menu

Right-clicking P3 offers no units to be selected. Entering a Custom Unit returns an error message.

Is that behaviour normal for Maple or am I making a mistake?

 

I want to draw multiple curves based on a single equation in which a parameter will change giving different curves. I want these curves to be in the same frame. Is there a single line code for the same? 

Hi,

 

I have a PDE which I would like to group certain terms in common. They are all general functions and do not all share variables in common.

It is easier to explain in the script attached.

Any guidance anyone can offer would be greatly appreciated. 

Thank you 

 

question3.mw

Hi guys,

 

I am trying to solve a Fredholm equation of the second kind using Maple. An analytical expression cannot be in principle found. I was wondering whether Maple does numerical evaluation of such integral equations. Please see the equation in attach. Any help is highly appreciated.

Thanks

F

 

Question.mw

Hi,

I have reinstalled Maple 2016 on a new computer, the installation is fine. However, with time, on the old computer, I made several adjustments in the Tools->Options menu, I have added tasks, selected some palettes, removed some others, etc... Is there a way to transport those settings all at once, without performing all that again?

Thanks.

Hello

I wonder if there is a way to see the progress of a specific procedure.  I have checked the forum for some answers and found that some of them propose a progress bar. However the progress bar doesn't seem to fit within a procedure.   

I don't need anything fancy but I need to see the progress of the loop inside of the procedure (over 3,000,000 times).   

Any suggestions?   

Many thanks

 

PS. I am running Maple 2016 too but I would rather see a solution that works on Maple 14 too, if possible.

Is it possible to create several animation windows and run them simultaneously? 

I'm feeling that the answer to this question will be no, so I explain my problem. I have an animation of rotating object and I have some quantity that relates to the rotation. I want to see the rotation of object and the propagation of the graph of the quantity simultaneously. Maybe there is a way to somehow split the plot window in two, so in the left would be the rotation animation, and in the right would be the function animation.

Hi,

I am trying to substitute an general function pde expression I have derived in maple into another general function pde expression but cannot seem to find a method that works. 

Attached is an example worksheet - any help offered would be much appreciated.

Thanks 

 

question2.mw 

First 1065 1066 1067 1068 1069 1070 1071 Last Page 1067 of 2428