Maple Questions and Posts

These are Posts and Questions associated with the product, Maple
tot := 1:         
for z in 1, x, y, q^2, 3 do    
    tot += z;  
end do:  
tot;

When I run the code above, Maple gives me "Error, unterminated loop".

However, if I change the code to 

tot := 1;
for z in 1, x, y, q^2, 3 do
    tot := tot + z;
end do:
tot;

Maple computes the result correctly.

I don't see how the loop is unterminated. Am I not allowed to use operator assignments in loops?

As a newbie I am still trying to learn Maple. I was wondering whether it is possible to import this txt file 2011068_2_ex.txt which contains results of different measurements separated by a header. I would like to import the data for each measurement without the header and to extract some data from the header. Is this possible in Maple and what should be the best method for doing so? What I would like to obtain at the end is Extracted_from_the_header.txt and raw data for the 4 measurements.

Thank you in advance for all help.

If I want to get an irreducible polynomial with root sqrt(5) and minimum degree, I can use:

with(PolynomialTools):
MinimalPolynomial(sqrt(5), x)

But what if I want this irreducible polynomial of the minimum degree to have roots in both sqrt(2), sqrt(3), and sqrt(5)? How do I get this polynomial?

ps: The coefficients are all integers

please, help me..this is my model

I have a worksheet mode worksheet which I would like to continue developing as a document mode worksheet - they couldn't have chosen more confusing terminology if they had tried!

So, as the title says, can a worksheet mode worksheet be saved as or converted to a document mode worksheet?

I have checked the help and documentation and have googled but to no avail.  I am not very hopeful ...

And, if they are not inter-convertible, why refer to them both as worksheets and give them the same file extension

I get this error unter WINDOW 11, with WINDOW10 it was o.k

> lib := cat(kernelopts(mapledir), "/lib/mylibn.mla"); savelib('MYEIGW', lib)

Error, cannot lock repository, C:\Program Files\Maple 13/lib/mylibn.mla

Hi,

I used maple a long time ago. Now I bought it for my hobby projects (helping with online courses), but I noticed two things.

1. My Windows 10 is running in 4K on my screen, but with font scaling, which is not reflected in the Maple GUI. All dialog boxes have disproportionatly tiny fonts. Is there a way to fix this?

 

2. The background is sharp white, which also cannot be changed, and it hurts my eyes, so using Maple will be a challenge.

Is there a way to fix these? Even hacking.

Thanks.

I have a fairly simple worksheet with a 56x2 matrix M1 which I am trying to export to Excel with the following 

ExcelTools:-Export( M1, "C:/Temp/M1.xlsx", 1, "B2")

This causes the following message to appear

After that the program is frozen and totally unresponsive.  The only way to proceed is end the task in Task Manager..

I am trying to upload the worksheet but am not sure if I have succeeded

Download Calculation_of_pH_from_known_values_of_Vb.mwCalculation_of_pH_from_known_values_of_Vb.mw

I'm wondering if there is an equivalent implementation of the Mathematica Cases.

Usually, if I want to find all the occurrences of a specific pattern at any level in my expression I would use 
Cases[<expression>,<pattern>,Infinity]

For example, if I have 
expr = {sin[x]/(sin[2-x]+1)-12,sin[x/2]^2}
Then
Cases[expr,sin[_],Infinity]
will return 
{sin[x],sin[2-x],sin[x/2]}

Is there a way to achieve the same with Maple?

How can we put a z-axis label on the top as in the attached picture?

sine_fun.mw

I am solving a very simple first-order IVP whose solution can be expressed as v(t) = (10/(3*t+1250))^(1/3). I've tried multiple simplify( ) and combine( ) but I cannot get Maple to simplify the solution to this form. Some of my attempts are in the attached worksheet.

Any thoughts on how to accomplish this?

de.mw

Dear Sir or Madam,

I cannot get a solution from this equation. Can someone show me how to find (a) solution(s) for it?

This is what I look for: The 'height' of a parabola expressed in terms of its arc length and its radius.

Hence, I would love to solve one of these two (equal) expressions:

solve(L = sqrt(a^2 + 4*h^2) + a^2/(2*h)*arcsinh(2*h/a), h)

solve(L = a^2*(h*sqrt(1 + 4*h^2/a^2)/a + 1/2*ln(2*h/a + sqrt(1 + 4*h^2/a^2)))/h, h)

Thank you for trying out !



I created a Github repository with files to reproduce the example that my question is based on.

I am using Grid:-Run to compute a 10000x3 matrix in each of 100 parallel runs. I then average the 100 matrices to obtain a final 10000x3 matrix, which I saved to an .m file.

It contains a variable called with the matrix.

Each row of the matrix is a 3d point, and the entire matrix represents a trajectory on a sphere. I'd like to display an animation of this trajectory. Now, my question is not about how to do this, but rather about the memory requirements necessary to do so.

I can plot trajectories with, say, 1000 points, but apparently 10000 requires too much memory.

The Github repository I linked to contains an example of all of this.

The worksheet matrixTest.mw reads the matrix from the .m file and reads some procedures defined in the .mpl file that are used for creating the animation data.

Then, a call to the procedure animateMatrices basically calls plots:-display to display the matrix as an animation.

I've been able to display the first 5000 rows of the matrix.

What type of memory is running out when I try to display the animation of the full 10000 rows?

Here is a screenshot of my Activity Monitor right before I get the

Error, out of memory error while processing result

I try to find the value of the highest peak by using Optimization. But Maple returns an error with the comment "Error, (in Optimization:-NLPSolve) abs is not differentiable at non-real arguments". How to remove it?

plot.mw

Hi! I need to simplify a polynomial over an arbitrary field F on a radical variable ν, such that for some power j, ν is in F.

the polynomial takes the form:

k0+a1ν1/j+...+anνn/j

but, since νj is in F, this divides every element νi/j into a cotient group of order j, so this can be rewritten as a radical extension of F, in the form: 

k1+(a1+...)ν1/j+...+(ak+...)ν(j-1)/j

where ki, ai are in F. I feel like this is a very straightforward technique for handwritten algebra, but i can't see a command for this on Maple 18. Nor the simplify(..., radicals) Or the combine(...,radicals) seems to help here. Maybe there's an special command for this? Must i do it myself? Please, any help is aprecciated.

First 134 135 136 137 138 139 140 Last Page 136 of 2097