## 15 Reputation

0 years, 168 days

## How do I extract terms from multivariate...

Maple 2020

Hello everyone. I want to know how I can extract terms with the lowest sum of the degree of x and of y in a multivariate polynomial (in x and y)?

For instance, if I've f(x) = 100x^2y^2 + 35x^2y + 45y, I want an output of 45y.

On the other hand, if I've g(x) = 13x^2y^2 + xy^2 + 2yx^2, I want an output of xy^2 + yx^2.

## Why did I get an unterminated loop error...

Maple 2020
` `
 >
 >
 (1)
 >

Hello everyone. I was trying to code the recurrence relation given in the image below (without taking the mth power):

But, as I run the program, I am getting an "unterminated loop" error. Can someone please point out the mistake(s)?

## Why this unterminated loop error?...

Maple 2020
```rfin := proc(m::integer)
local c, i, flg := 0;
for i from 0 to m do
local b := i;
do
c := b mod 3;
if (c <> 2) then next else flg := 1;
end if;
b := 1/3*b - 1/3*c;
until b = 0;
if evalb(flg = 0) then print(i);
end if;
end do;
end proc;```

Hello everyone. I've written a procedure that outputs all numbers <= a given user I/P whose ternary representation has no 2.

However, I get an "Error, unterminated loop" message. Can someone please out the mistake(s)?

 Page 1 of 1
﻿