Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Dear all,

I want to know how can I solve a fourth or higher order equation to find out its roots, actually coefficients of each power terms itself are functins of other parameters not constant.

Please reply as soon as possible, as this is very urgent,

Regards.

I'd like to pay attention to the article of David Austin "How to Grow and Prune a Classification Tree"

Here is its introduction:

"

It's easy to collect data these days; making sense of it is more work. This article explains a construction in machine learning and data mining called a classification tree. Let's consider an example.

In the late 1970's, researchers at the University of California, San Diego Medical Center performed a study in which they monitored 215 patients following a heart attack. For each patient, 19 variables, such as age and blood pressure, were recorded. Patients were then grouped into two classes, depending on whether or not they survived more than 30 days following the heart attack.

Assuming the patients studied were representative of the more general population of heart attack patients, the researchers aimed to distill all this data into a simple test to identify new patients at risk of dying within 30 days of a heart attack.

By applying the algorithm described here, Breiman, Freidman, Olshen, and Stone, created a test consisting of only three questions---what is the patient's minimum systolic blood pressure within 24 hours of being admitted to the hospital, what is the patient's age, does the patient exhibit sinus tachycardia---to identify patients at risk. In spite of its simplicity, this test proved to be more accurate than any other known test. In addition, the importance of these three questions indicate that, among all 19 variables, these three factors play an important role in determining a patient's chance of surviving.

Besides medicine, these ideas are applicable to a wide range of problems, such as identifying which loan applicants are likely to default and which voters are likely to vote for a particular political party.

In what follows, we will describe the work of Breiman and his colleagues as set out in their seminal book Classification and Regression Trees. Theirs is a very rich story, and we will concentrate on only the essential ideas"

It would be interesting to compare this approach with discriminant analysis. Hope somebody of  the Maple developers will give a concrete example on this theme with Maple.

How do I use msolve to solve y^2 + y - 11=0 in Zp for all primes p with 41=< p =<107 ?

Also, using the results make a conjecture describing the primes p for which there are solutions to y^2 + y - 11 = 0 in Zp

This was what I did.

41<=p<=107

msolve(y^2 + y - 11=0, p)

but I received this error, no implementation of msolve matches the arguments in call, msolve(y^2 + y - 11=0, p)

Any help is appreciated. Thanks

I have a coefficient matrix A and the constant matrix b.

I want to find the unknowns x_1,x_2,...,x_8. When I put my code and run it in Maple I get an error. Any ideas as to why this is happening? The code I tried is as follows:

 

 

with(Student[NumericalAnalysis]):

A := Matrix([[-1, 0, 0, (1/2)*sqrt(2), 1, 0, 0, 0], [0, -1, 0, (1/2)*sqrt(2), 0, 0, 0, 0], [0, 0, -1, 0, 0, 0, 1/2, 0], [0, 0, 0, -(1/2)*sqrt(2), 0, -1, -1/2, 0], [0, 0, 0, 0, -1, 0, 0, 1], [0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, -(1/2)*sqrt(2), 0, 0, (1/2)*sqrt(3), 0], [0, 0, 0, 0, 0, 0, -(1/2)*sqrt(3), -1]]);

b := Vector([0, 0, 0, 0, 0, 10000, 0, 0]);

LinearSolve(A, b, maxiterations = 300, method = SOR(1.25), tolerance = 10^(-2));

 

I also tried it with a SOR variable of 1.5 instead of 1.25, but that gives me the same error.

Hello,

 

Is it possible in Maple to select summand with some command?

For example:

eq := a+b = 0;
                           a + b = 0
eq-b;
                             a = -b

How to generalize second line?(in this case I explicitly told to subtract b, but I want to pick b by some command)

And I am not talking about solving, isolation or anything like that in this case. I just want to transfer something from lhs to rhs by selecting it beforehand.

 

 

Thank you.

Hello,

 

How can one simplify following expression:

After applying 'simplify' command I am getting this:

Powers are not distributed between bases.

How to force Maple simplify it further to

 

Thank you.

How can I plot a vertical line say x = a in Maple 15 worksheet?

Thanks

I have about a year of experience in Maple, but as we know, we often come accross very simple problems that are difficult to find solutions to. Part of the problem is that I have not used conditional tests within for loops before.

I have a very large matrix, but until I solidify the algorithm, I'm practicing on a small matrix.

I created a 3 by 3 fibonacci matrix A:=<21,5,1|13,3,1|6,2,0>

I am trying to change the 1s to 0s without specific index reference. Here is my psuedocode that I hope to work on after some tips:

  • for i from 1 to 9
    if A[k] = 1 then
    A[k]=0
    end if
    end do

 

I get an error message saying "unterminated for loop," which is confusing me.

I have 4 retangular equations:

z0:=sqrt(3)+I
z1:=-1+I*sqrt(3)
z2:=-sqrt(3)-I
z3:=1-I*sqrt(3)

on polar form they apear as:

polar(z0)=(2,Pi/6)
polar(z1)=(2,2*Pi/3)
polar(z2)=(2,-5*Pi/6)
polar(z3)=(2,-Pi/3)

I want those polar expressions plottet in a polarplot as points(x,y), how is that possible ?

 

I want to integrate the following cumulative distribution function with variable bounds but maple returns the integral.

>with(Statistics);

>N := RandomVariable(Normal(0, 1)):

>a := (ln(98.53*(1/95))+(0.1e-1+.5*x^2)*.5)/(x*sqrt(.5))

>y:= CDF(N, a, inert = true);

How do i make maple return a function of x instead of an integral?

I'm trying to write the cumulative distribution function into maple but I seem to get an error. The code is:

>with(Statistics):

>N:=RandomVariable(Normal(0,1)):

>CDF(N,t,inert=true);

I get an error message "Error, (in Statistics:-CDF) unexpected parameters: inert = true".

It used to work, maybe because I was using a newer version of Maple.

http://uknowledge.uky.edu/cgi/viewcontent.cgi?article=1001&context=math_etds

Example 3.23 in page 24

degree(2*z^2 + z + 2); #2

how to convert rational function to into (something) - (something) + (something) like in the example

the example 's rational function is 2*z^2+z+2

if rational function is has denominator how to calculate?

2z^2 + z + 2 =

z+2
3


z−2
3

+

z+1
2


z−4
2

+

z
1


z−8
1


when calculate delta p1, what is bi? how to calculate like the example's one?

(z+i-1 i+1-j) - (z+i-bi-1 i+1-1)

sum(d,i=j) (z+i-1 i+1-j) - (z+i-bi-1 i+1-1)

3.23
(z 1) - (z-bi 1)

how to do the expansion in step 3, as i use right shift that can not calculate the same result as in the example.

x0*x1/x0 = x1; # not same as in the example for I

x1^4*x2/x1 = x2*x1^3;  # not same as in the example for I

finally would like to apply to hilbert series 1/((1+z)*(1+z^2))

Joe Riel,

I am interested in making some adjustments to the Syrup package to help tailor it to my needs (expanded error descriptions, variable partial differentiations, and others).   A little over a year ago I had some dialog about how to make Syrup changes, but the program I was working on at the time, cancelled the Maple effort...

I need guidance on (1) how the Maple code is structured so I may explore modest changes, (2) what suggestion do you have on the easiest/smartest code development environment, (3) how to compile the changed code, then (4) how to rerun the revised Syrup.

Thank you and happy holidays.
Jeff Belue

My Maple is apparently getting rusty!  Question: how do I recognize a finite constant?

type(Pi, finite) is false (by design, apparently), while type(infinity, constant) is true.  So now I don't know quite what to 'ask' maple!

For those who have the Clickable Calculus Study Guide for Maple 18, please note that we have released an update to this ebook, which provides corrections and improvements to the text and examples. 

This update is available through the automatic updates system (Tools>Check for Updates) and from the download section of our website.

eithne

First 1291 1292 1293 1294 1295 1296 1297 Last Page 1293 of 2224