Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.2.59-cp312-cp312-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.59-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.59-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.59-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.59-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.59-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.59-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.59-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.59-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.59-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.59-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.59-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.59-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.59-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.59-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.59-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.59-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.59-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.59-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.59-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.59-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2db2eaabf11c167f6f3691b8f20c781001839af2c608c136af0859d26a14b4cc
MD5 631cf378a86811044348a0008058e431
BLAKE2b-256 7670fd492d345aa2dcf43f9bcf061416199dfcf91c523d03fe86fd49f77e722f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9380477bc7c96a19939c7c2b9c548b2aa4c31d55dab4e11bde83051211c2413a
MD5 c4d8461e9fe44e3b74813acbd787dce7
BLAKE2b-256 f07e4b7ee54377fc4707335a445723a160ef9c75f3341d72fa9a44aaef436bbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c0c014ea6f253104edacce2dd63445442c2c0c2d50c71df7f77d8c3cdb4397f4
MD5 7c52af10d2c95d74c1c15ab6c1e04b92
BLAKE2b-256 8e1c770cc6b9600bf397969579ce2c6c4de053fa41a25573cb96e36e1fab2364

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc7e26a449d02aea2c4a6439b75a7ea0fa0e5d8f2ed5a482600e2c807eddd4a1
MD5 ef860cfc05acadb2336e4d384795f307
BLAKE2b-256 63d0c8d37e985e8eac03c23c62089a6824d5b44814f61308a75f4c60ed0e6946

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e261b2a377f11160946e2dc7b223301386c91316ebb43272a9c2adaf4b00a21b
MD5 a3d00b0ac62c0e3d0a2468bd70111522
BLAKE2b-256 dd79a567aa05a517d1e338af3b0ffc4107a1ec4588a22646735559b7a545099a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 75636bbc7bd109582c9ad316b9efa417b9f7e7c88dc2f4405a16930e45d0a25a
MD5 5b53a915d43f9960f3d39e41c4fe3e92
BLAKE2b-256 99646f3dd2709e638a5d2a7b62b308f9efe4a77c36269d07a7a8a096ed70ba49

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f98eabf5dc232da27bba8bd3fc9ac91a067f61d9f1f0737156d56b4d2fbeafc
MD5 77a6bb9481182079235accac00da73cc
BLAKE2b-256 bcfac5180a4769608bca610d7f3974d9a0f4bb2171317b4c34bd7477c9f3eb41

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbd8185abcd7f45823e820076d4954da5be352347bd85fe18b7ee169119f2247
MD5 def6fd8cf7c040b9d013081f4a049f64
BLAKE2b-256 16c5336f27bd750f3469d4c505fa3d41b2e1b498915c2d6dec573206a8e9cf35

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b4e38933a241472b9a97f55ba4b7479dd9b4cd87191aa5231785bc35b6ff09c8
MD5 2713288804c234a46a49b16f034e9738
BLAKE2b-256 d3852156ff4ae23a031785d7a6c6e37fda09a3190da5d73b87b7f2d66d637ec7

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1cd5a733f92564d43831d75e075d8e3a1424bf9ace86209bded6d192e6ceaa16
MD5 4751d8b60533e6e82d2de254f7211479
BLAKE2b-256 bf8ebf14698720d7ef77a66471181538a9b4d21b52c0d91a0b086821a5fe80b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb4b2e4fae42829310f54ba4bae105b0cf75fa6833e2444115f14cde6c4360e6
MD5 bcc06d0b582854ae7c4d3046816cd933
BLAKE2b-256 d662a619df8542e82bba397db739c2af23891d440e99f6aa9f046edca0db2a04

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf1a7cff0007a1864bf3bfc7c0857a05fc1983fea6b7dbbdac715a97c45ada80
MD5 b3c68d395b8ec8ed0864d9b853125938
BLAKE2b-256 c0a5776ee08d96a08cbe8baeddf154c45721efd771c3d45a9587ebe19d336209

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 513dc66ec1d3c7c0667475ce410f2a7ee7896e1e21710c59f5f573a3b0b2a91f
MD5 26ebc628ae08750154b815d8cbb74c3d
BLAKE2b-256 1168ce3ca43fc59daf4029a33430a5ea6b2f7c72e38230a75e3c176308c65360

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cd16851603fe529e59c3a7dbd007bfe5a9f229675b949d0fdeda3eeab99e7f93
MD5 b66129c96ed210ffac0c9b2301e12deb
BLAKE2b-256 6a5c15aba03bc627dfa99895383771248d92d0b20adfe844f95a025e1e9a49ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0bf5b4ec0f876c3a71d5bc6807fd913c436ef775099145a48287638602dc0d97
MD5 0e7bfd700a2ac07d3d4ce0ba2a368afc
BLAKE2b-256 8d6c6dccb45508261a108445abc17b2c0884378bd29cd0c915a91549ef3ffbf6

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a33c8984424f50b1db95bd345da58c6ccefd239801e6509f5b93f2bb0aaf210
MD5 d4765a6cb034c0c22398f43350e557f4
BLAKE2b-256 3731a7cf8eb4a600246b753e54c88e44f1b9c89a22d48242db1074982f55ac2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ca994de8b86a711b3de4c2f1a09f7f7c8359c2d97e707a31d291c68dab059194
MD5 1aa85b7442ed66cc406bd279475100b6
BLAKE2b-256 f46a32fde1a9a28aea0e11b6c332dbe5192212ebc98820e6c32f03046316f6ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.2.59-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.2.59-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7c85d9236f0bc8324abf4678e8eebf2d786e049b8044c0dd941c60c3e6ac3de3
MD5 10bf568d0f69fce4de8704d6d268a6ed
BLAKE2b-256 672c07bbd7d5a54bd867a31a645321fbe2cafcacee5d603a389fad485809d533

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bce7ef0ef61db3b43fc9324230f726be0ae0eed778bb38e42468b8b918f0dde4
MD5 f34a8feaefcd18cf6af7903ed4efa903
BLAKE2b-256 8ca630da138c301499eaaf676a6f1b3bb000c354c47161affa8ddc89058f20b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.59-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.2.59-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5628eb28cf2600a45e7da5f9f562d555347edc98aa4f217916995a96577cf0a
MD5 ef46bd5351ba9c57e1a1d39b60869466
BLAKE2b-256 9506d21f1d7be35fb8439d999a1a475733e4faffb41cfcf3bbcb8e01ef84463e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page