martinandrovich

15 Reputation

2 Badges

9 years, 305 days

MaplePrimes Activity


These are questions asked by martinandrovich

Hello dear forum,

I'm trying to create a function in maple, but I'm stuck at this problem:

I need to extract the values from an expression, for example I've got the expression:

544X-228412+1836Y-1296Z=0

I want to get/extract all the values from the expression, but ONLY the numerical values like "544", "228412", "1836", "1296" and "0". How would this be done?

My goal is to then insert these values in a igcd command and get a common divider for the function, so I'll be able to end up with something like 4(136X-57103+459Y-324Z)=0

 

Thank you in advance, and have a lovely day!
Best regards, Martin.

Page 1 of 1