Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IB2 ¶
IB2 returns the max product for n break into n1--nk with sum as n the math behind it suppose for n we got an x that got the max product. y = x ^ (n/x) then y' = x^(n/x) * n/x^2 * (1-lnx) so if x = e makes it a peak,when x > e it became negative so for integers we have to choose 2 < e < 3 that makes the biggest product. but prefer more 3's cause 6 = 2*2*2 < 3*3 but for n = 4 we got 2*2 > 3*1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.