Question: Extract values from expression

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:


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.

Please Wait...