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.3.465-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.465-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.465-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

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

simple_equ-1.3.465-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.465-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.465-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.465-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

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

simple_equ-1.3.465-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.465-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.465-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.465-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

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

simple_equ-1.3.465-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.465-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.465-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.465-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

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

simple_equ-1.3.465-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.465-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.465-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.465-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

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

simple_equ-1.3.465-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0db7a6443e836b745898f7b93fd366253c0510bf83e72425d69659a7547f322
MD5 b8481885c9520c55e7f35a8a8d522685
BLAKE2b-256 f6afedd7d2ba8c5595321bb83f57a2aa4167c6d09d3b441da3569bbb718c9501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 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.3.465-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 16ea3f3097d6323a37306ad46073508ccc1cb643bea6b969beaf22bdfada97b6
MD5 b17016a07b8f937c7c6f67f2cfb720f4
BLAKE2b-256 29573c43f41852ce74329d250606e71ca8b00d3c7d91a50fc3b6eeb8162c7ff3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.465-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.3.465-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0939d1abb1ee24bf3608c29549075dd5c28793505856b77ef86d2d7825bd968c
MD5 e3e1ef973f61d55896d4dfa882faa086
BLAKE2b-256 bf9518c5ec824e0e547f18e62147af09f18a8125a68a2da0e391ee9ebef2dd71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3da2806ca35200c2b3e20c59bbe04d67349c9a2b4d1c673f980321affed401c5
MD5 a9edf61e9c403a3574586d7dc992952c
BLAKE2b-256 6a678e27a4e1efaabedb62c9532bd85c193aaa02f8025bc48769358c478aa4fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02d6040bf0b39d1e0cf9cafe626a12517fc087ecc640d05f447247e9150db975
MD5 2fa83283be69198d2fd2b1d7ca49ce09
BLAKE2b-256 d67f332aa876c3d5992044a105cc1b267bb2c4d9628df31b3cd105f05b813ae2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 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.3.465-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8745498f0f280cdef5117adaad015f03d63f99778834dff776f8d5238e4f40b9
MD5 66d677f8781e463441c91a4a881300c2
BLAKE2b-256 1275ef67b1e9ce887c7393841e5a2a1495b923b64aa5d80d73fd22628db34b8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.465-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.3.465-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 374974a26cede39c5c0bc8b7578ba083db748a3a0c23d0d0a2f8deeb76bac8a8
MD5 dab65dd08d5f46a6affdc8a2920fe88d
BLAKE2b-256 e62c850da245f808143422b0fc34205273f149539b400b3e245079ac93e08608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00637f771d8e4a865170f22ed0292697a4097a66b69cf2780a8f7f4b4d95bcf7
MD5 e4ace50e0d7f47a5c20fdbbe2253bcef
BLAKE2b-256 4ab4ebc3586f78cfa5430c65d6e2dd803d9fcc32ed755ef68d636774d2a71e48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1090d4e9a615f7de9d98c52bd79b487a222d8a394e663e5d0fe7f3035dfc2e32
MD5 85165dd6e833240b22ccb83a97ab1f2c
BLAKE2b-256 b6fe895e4b5448c8772b9c7f71ee567cbf8bed8fbee38c683242d1f232196985

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 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.3.465-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2fd2a1e726bcbb621530bcec3832c9728b3dc3ea4ffbd909350508ca98ea8d0d
MD5 b915984b009448a12ed0c533235627d5
BLAKE2b-256 be9823a7bd86a67e10348fc4aeb27842071cf4d8b34df3c6a84cba57fadbe457

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.465-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.3.465-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baf2ca1154f39576b0139637438a59e9fcb4404345410d10fbdcccd477a440e1
MD5 6b5e89043d0dc348193f61fdf3d5f297
BLAKE2b-256 a513c5e7cb449304dcee459afa281032db597a12a8b2c398fb937442cabbb845

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c7eaa5340669145c5a7ae7b1b414c56fe6a233857e6e2db2ab4c8c676aec383
MD5 f1552408277b87e3220e24bcc8c2c184
BLAKE2b-256 0da4aca16bcd84a284b1120f5cd014b3686a87ecc4657b2a7109d6283473d327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.465-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d8b1a05e0d77f9d43187a99e7d755be919fed3ecd4a4a04fe5cac3b693fafc83
MD5 4907967b32037378ee51d91f93062a96
BLAKE2b-256 99820fbeecc4ec9e192eb2d11d5774d92fe2ecbbfe6602109498cf1be9148ccd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.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.3.465-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c2f7228e10bfbdab820a0718f6ff3d2b88d8bd5f75f458d5b4b34f847170257c
MD5 6140fa4166417606f5ed6727610cd068
BLAKE2b-256 74b8677ecc942bc33ee3f5ae678deefdd8099f3facac7f07dac39bcdd7d58237

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.465-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.3.465-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4cfbc5c338ff5fa39f8332e11f70b5ad20073f2e0b6decd0b653a8229c5c4878
MD5 08347903c477a6d52b8e73dca9ad8916
BLAKE2b-256 bb6fe9902635d109e29bb49d060705405d8c7a9e668db6c485f8a1efead0d051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2d3136d494f4143e4eaad9db8ccfbb555ca11d8d478a26f7aa52f87781d5242
MD5 9bf75faa3bfe1075bd6882a8960d5ddc
BLAKE2b-256 0d68a25cec1cbc84c12cfec37ab636ac52d29d92d4b1b950ca8254491421d7a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 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.3.465-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dcb6e7b9ff7a65843a4a8fabd5cde3d83add25f67a3abc5a34debccb5c67c534
MD5 78579249b0d583a845f891b922609fef
BLAKE2b-256 bafd451b01d64d8ea876922225b574c645380c5178f3cd3f9f5a5c087e37a9d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.465-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 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.3.465-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4f440427cf2edad4d77ec2c53baec5f5c9decee113bdeb711cb4b9d105cd4208
MD5 4fffa514b99d46bd498c4a298729d7d5
BLAKE2b-256 914024662e2a6c0ff7c8e6637394a0895a4bbacfb9523e7b459aed05afd98b2b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.465-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.3.465-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1cef2e8ebc1dcb2f7e880eab27a450285e4ef99aa85f72be54c501a7b96f09e4
MD5 1f93c8ad37f5c59e7fa3447e5cb5a374
BLAKE2b-256 15acd59219a6197d38bf1795e02be34c7492593fdd3c49351293bf48f5c31483

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.465-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92cab316f31fa7a4f3c121fefd7170e5c443d1e9d1db09153a8b3528b460f299
MD5 2476a212179fd8c51ec4989d0ca259a9
BLAKE2b-256 a1cde74edfd586cfba02a29eb536998afb60e1d39e346b0c4332579c62a51934

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