ib

package
v0.0.0-...-8d3c4b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IB

func IB(n int) int

func IB2

func IB2(n int) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL