Coder Social home page Coder Social logo

macocci7 / php-math-integer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 97 KB

Math library of number theory (only natural numbers)

License: MIT License

PHP 97.61% Shell 2.39%
bezout-equation divisor euclidean-algorithm fraction library math multiple number-theory php prime

php-math-integer's Introduction

Hi there 👋

I'm a full-stack web engineer.

I feel happy when coding.

My current interests: PHP, Laravel, Vue.js, Angular, Python, Golang, Mathematics and Physics.

  • 🌱 I’m currently learning Angular, Python and Golang.
  • 👯 I’m looking to collaborate on somewhere.

GitHub Stats

macocci7

macocci7's github stats

Languages and Tools

html5 css3 php javascript python golang jQuery vuejs TypeScript React Angular nodejs npm npm Laravel Flask Django Wordpress Tailwind CSS Vuetify Jest git VsCode Vim mysql MariaDB PostgreSQL MongoDB docker bash Linux Ubuntu AWS GitHub

Works

An additional file selector prompt for your laravel/prompts applications.

File Selector Prompt provides assistance in entering file paths quickly and accurately in interactive mode.

2024-05-29.00-13-46.mp4

This feature has been included into Community Prompts.

A simple library to get and format GPS data from a photo.

a standalone library to use the Illuminate\Validation package outside the Laravel framework.

use Macocci7\PurephpValidation\Rules\Instance;

$validator = Validator::make(
    data: $data,
    rules: [
        'prop1' => Instance::of(Instance::class),
        'prop2' => Instance::of([
            // Macocci7\PurephpValidation\Rules\Instance
            Instance::class,
            // Macocci7\PurephpValidation\ValidatorFactory
            Validator::class,
            // Closure
            (fn () => true)::class,
        ]),
        'prop3' => Instance::of('Closure'),
    ],
);

A PHP Library to plot graphs and figures on a xy(-two-dimensional)-plane.

You can draw figures freely on the canvas, such as: Pixels, Lines, Boxes, Circles, Ellipses, Polygons and Bezier Curves. You can also put Text or Fill the canvas with a specific color. You can save the Canvas to a file.

You can put figures within the Plotarea by just specifying the coordinates on the xy-plane without having to consider the pixel coordinates on the image. Transformer automatically maps the coordinates on the xy-plane to pixel coordinates on the image. Plotarea is automatically placed on the Canvas. You can adjust the position and the size of Plotarea on the Canvas.

You can use only Transformer separately from Canvas and Plotarea.

use Macocci7\PhpPlotter2d\Transformer;

$transformer = new Transformer(
    viewport: ['x' => [-1, 4], 'y' => [-2, 3]],
    plotarea: [
        'width' => 400,
        'height' => 400,
    ],
);

$points = $transformer->getCoords([
    [-0.5, -1.2],
    [1.3, 0.6],
    [3.4, 2.8],
]);

You can also draw a full size beautiful graph.

See more my works at: my public repositories

Gists

Gist Card

Gist Card

Gist Card

Gist Card

Gist Card

Gist Card

php-math-integer's People

Contributors

macocci7 avatar

Stargazers

 avatar

Watchers

 avatar

php-math-integer's Issues

Update tests

tests/*.php includes unnecessary lines.

ex). require_once(‘Number.php’)

Add before() method in Prime

Macocci7\PhpMathInteger\Prime has a next() method.
I think it would be good to have a before() method against that.

Fix misspelled

  • substruct >> substract
  • Bezout's Equation >> Bezout's Identity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.