reinhardsiegfried

25 Reputation

4 Badges

10 years, 129 days

MaplePrimes Activity


These are questions asked by reinhardsiegfried

So basic problem.

 

I want to create a list with undetermined size. I have some data, let's say these data objects are numbers for now (they can be expressions of variables, or even equations)

 

Here is a pseudocode,

 

for n=1:10

  list(n) = n+1;

end

 

So the above for loop will create a list of size 9, with objects being number 2 through 11.

 

I want the list to be in {} form

 

Now I awnt to take this further. Let's say my data objects aren't just numbers, but expressions. How would I create a list of expressions and turning them into an equation?

 

Example

 

e1 := a^2 + b

e2 := b + a*b

 

e3:= b*a + a*b^2

 

Pesudocode

 

for i = 1:3 do

list(i) = ei ~=0;

end

 

Output should look like

 

list = {a^2 + b = 0, b + a*b=0,b*a + a*b^2=0}

 

Notice the use of curly braces

 

Is there something I can put at the beginning of my worksheet to tell Maple to do everything in fractions?

 

Maple is outputing things like -0.166666667 when I solve an equation and I know that is -1/6

 

 

 

Let's say I have something like

 

p1:=((a+b+c)*t + (a^2 + b^2)*t^3)*(c^3a^b + a*b)*t^2 + (1/(b^2 + a^3)) + b + 1/c^7)*t^7 = 0;

 

or something complicated like that.

 

Would it be possible to print the polynomail up to say order 3?

 

I want to be able to print

 

collect(expand(p1),t) up to order 3 and see the resulting coefficients

Problem: I have two polynomials with arbitrary coefficients. I set them both to 0 and I used the 'map' , as well as 'coeffs' command to make the coefficients equal to 0.

Now for some reason, Maple does not print in order for one of the polynomials and it does for the other.

 

Note that 'order' refers to the coefficients attached to the powers of the variable.

 

Quick example: (this one actually works on Maple, but just not the one I have)

 

e1:= ax + (b + c)x^2 = 0

e2:= (c + d)x + (a + c)x^3 = 0

 

After applying map and coeff, one expects it to output

 

a = 0, (c + d) = 0, (b + c)=0, (a + c) = 0

 

instead I got

 

a = 0, (c + d) = 0, (a + c) = 0,(b + c)=0

 

Here is the problematic file

OutOfOrder.mw

Hi is there a way to identify curves in your plot? Especially when you dont know it yourself?

 

For example, I have 10 polynomials all order 5 and up, whilst I can trial and error identify which one is which it is very inefficient.

I used to use Mathematica, and I could manually label the curves with color which allows to see which curve is which. I assume there is something of the sort for Maple?

1 2 3 Page 1 of 3