Top
Back: injective_knapsack
Forward: set_is_injective
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.2.58 calculate_max_sum

Procedure from library crypto.lib (see crypto_lib).

Usage:
calculate_max_sum(a)

Return:
sum of all elements in a

Example:
 
LIB "crypto.lib";
list a = 1,5,3,2,12;
calculate_max_sum(a);
==> 23


Top Back: injective_knapsack Forward: set_is_injective FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.