tommica/php-goalseeksimple

A PHP port of Adam Hannas goal seek functionality

1.0.2 2021-04-12 09:24 UTC

This package is auto-updated.

Last update: 2024-11-12 17:40:02 UTC


README

This is a port of: https://github.com/adam-hanna/goal-seek

Usage:

composer require tommica/php-goalseeksimple
<?php

use Tommica\GoalSeekSimple;

function calculate($x, $y, $z) {
    return $x * $y * $z;
}

$result = GoalSeekSimple::Solve(
    'calculate',
    array(1, 9, 19),
    0,
    200,
    1,
    684,
    0
);

echo $result; // 4