## 50 Reputation

2 years, 207 days

## Inert polynomials output to latex...

Maple

Hello,

I would like to build a Maple call, whereby 5x^3+7x^2+2x^3 is somehow exported to latex without collecting like terms.

I cannot seem to get it to work.

any help would be much appreciated.

Thanks,

Mark

## 4 linear factors...

Maple

Hi all,

I am hoping to use Maple to develop a list of 4 distinct linear factors with the following conditions...

1)  each individual factor does not have a common integer factor...  ie...  3x+9 is not permitted

2)  the coefficients in each individual factor has an integer between (-9 and 9) without the possibility of zero...  ie x + 0 and 0*x +3 are not permitted

3) each seperate factor is prime to one-another.  ie.  factor1=3x+4  and factor2=-3x-4 is not permitted.

I was hoping to use something short and sweet, using a sequence (if possible), but continue to run into problems.

Any help out there would be fantastic

Thanks,

Mark

## randpoly problem...

Maple

Hi all I am attempting to use the randpoly feature to generate a random polynomial of 1st degree with non-zero coeffs between -2 and 2.

I have tried the following:

factor1 := randpoly(x, dense, degree = 1, coeffs = rand(-2 .. 2))

unfortunately as you will find quite often this produces the polynomial "0".  Which it is very clear this is not wanted.

Any ideas would be appreciated.

Thanks,

Mark

## Output to MathML as separate fractions...

Hi all,

I am trying to display, using mathML, two seperate fractions being multiplied as two seperate expressions with a multiuply in the middle.

as of now I have:

restart:
left:=(x+3)/(x+7):
right:=(x-4)/(x-1):
XMLTools[Print](MathML[Export](left*right)):

The above Maple entry displays as:

I would like:

Mark

## Check if simplified...

Maple

Hi all,

I am looking for a boolean logic check to see if a rational expression is simplified.

For example: x/x^2  =  1/x  I want something along the lines of issimplified(x/x^2)=FALSE

Similarily, (x^2-x-12)/(x-4) = x+3  so I would like some logic test to say (x^2-x-12)/(x-4) is NOT simplified.