[eclipse-clp-users] y = a1b1 + a2b2 + a3b3 + ... + anbn

From: Philippe de Rochambeau <phiroc_at_free.fr>
Date: Sun, 30 Nov 2014 12:09:00 +0100
Hello,

I have a programming project in which I need to display rows from a data array, in a PDF document, where each page should contain at most 25 rows.

The data array is composed of groups where each group can be defined as follows:

for instance,

group1 = a1 x 2 + a2 x 5 + a3 x 1 

group2 = a4 x 1 + a5 x 2 

group3 = a6 x 12 + a7 x 12 + a8 x 1 
…

Is it possible to compute the number of As in each group (assuming it is <= 10, to make things simpler), and their respective multipliers, where group n <= 25, in CLP or otherwise?

Many thanks.

Philippe
Received on Sun Nov 30 2014 - 11:09:08 CET

This archive was generated by hypermail 2.2.0 : Thu Dec 04 2014 - 01:16:36 CET