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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.78-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.78-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.78-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.78-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.78-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.78-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.78-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.78-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.78-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.78-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.78-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.78-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.78-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7aada815add07bffe8c1e52bcd509f0022e56508b434d6802d64e60dcf88b1eb
MD5 af38268d73406d14c9b4313ce02b25cd
BLAKE2b-256 910c88d800d9bd104934c54096bfa8133e3f7019b4d694edb6ae2955a0dc530d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 93a37594fee609008618a74a82465091cbd88ab7b5111bc13f1b77d60d0e3263
MD5 efbba0c3f9bb0e140b749d25b38c3dd1
BLAKE2b-256 f0be5cf65958aa5edd6b09ef27c3a661c23d92c210116ea03e3b0b33c892e7eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.78-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.78-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f87f5a75c2a758b4ada95f06af48ad4e4510aa259a741843b816515bb202733
MD5 b8ed222acc1520180be4103fde17064e
BLAKE2b-256 ea8c5c84afdd89fd698085fa65fbe6f8d13df74d448e69c98b26d8e8b563280a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.78-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1db869d57485242fa62251b8f384a9a150ee756663cda07a5d5108e7debceadb
MD5 b4bcd5a149768b7dd1f59b59c240ade3
BLAKE2b-256 5ac8c476d9ec784ada307fad08e20594eb253e8c1aa25021f6638edf78aef1de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.78-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 004802520e042f030697d47f721389c2a81b08a8a3c797dec210cb3c1aea3f0b
MD5 2617f7a3e0655f43648cec875dea2efb
BLAKE2b-256 f3e897974c6d3347a664559ee31f08172a4cf9cf5903d097709402d9624df67a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3e11e9ff9e327756cd8f5acceeee11e54c89546c5bc941c63f96cafbdd64333e
MD5 18af5ac339aa80902514fbc4f195fb85
BLAKE2b-256 84d5da022e3896754590de7fe869d2ba329099014e8d615824cd1e4b639f551b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.78-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.78-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ddd693b734c645805c9c8708528ed93c9468c5d6070e0a8f6a7c6c50543adc6
MD5 d740a9a8fc034b90bb64b3b1d23a44d8
BLAKE2b-256 bf90368111e481d901e178ac5d3235325c25aeb612a42bd122537334a325c50a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.78-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 455a1ba4e2bf3406daabef258bb06562e703a481005b412c1f274c109ddb1cda
MD5 b4e06f22a41ddcdeb0471a72acb02bc6
BLAKE2b-256 5c7c6457a3d4bf5d412cbd6c66fcc0c4e22357bb5e2e93fdacbc50f3193f8ff6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.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.3.78-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f19e94b04c032d599335a5a98d0da966da6c54101e6a64532ac27532cb70bfa5
MD5 60257c52241a9e9327a5ab998a34b399
BLAKE2b-256 919bccbe7b4cc68a3e9e39014220ccd85e1613e361c51409519cbaa4b4c9331c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d581464ec8fef90c43882de6229fba778ae5c0934fb66dc7fb0651c73f3eb0fc
MD5 c30f37a9f0106d4071f184c2d14b7460
BLAKE2b-256 41871c30df3721157b2a73dd80af2d96ef2fc9c547ff4b107fac0934a0ba2e4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.78-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.78-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63dd71e18a6ef3d5faab480e3c15a6b18e9e0132c48e5ac7ad2cdc570b5b96b4
MD5 54d8cb61ae3420a3301c44d36422a939
BLAKE2b-256 26c51808e314f1cabc95560f97426d31749e28d89c3458840620094e9df57302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.78-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf13c57ee671708f7118baa6df8fe2b624967255a09b051a6589516404ada2db
MD5 706f7a8baef8f838668164a255b4b354
BLAKE2b-256 a76eb7644d30ab20936efb8364f7702641e0020fe7ca4ac5dca8306673a3d4e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d8f6838476cbf88c9ebc0f5531a48a1c466aeaac892ea77d6337aca1e8e4ed0c
MD5 cc590a74dff01c9cb1f069b09f54bfa5
BLAKE2b-256 64836193597dd1e4a7335c7835ac560a6b87a95d07d6f1b48b12849047c4efd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a5bd4f1436109340af67db827c8193b9837a53e24fa44d3d38575d3efa19a4b0
MD5 809a66f96ebbc12c33584c50302ac0a2
BLAKE2b-256 43c25e20dae9584574b95b009410366876539cfe0b27a29412a945d0c3e17db3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.78-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.78-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2991d07f0e4ddb79cf38b440a41e9ad6d95455872ccc64b9b0bc01101ea4c4a5
MD5 dd910d3a57f56242e595eec248ebb548
BLAKE2b-256 810debd5dee778334dde9bff4d74303f83bb6eaf0d844ea0f345d71d241f49d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.78-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96203fda46e8547f1b97d8901b12610baf602a9e42763e291d110cc94ba87268
MD5 93357ea0395380051b8edeb00b90f983
BLAKE2b-256 e7128d15b5190298b984c16fd4f96136372239a07156d543644e0330ac2ce30d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0f2703e63268e4900c6e24e7fa3de06e69c3942a3686bf095348cbcc9c1d0c22
MD5 98e38a1fb1fd2da426be77f7aceb012a
BLAKE2b-256 e6f4a2a67e24a1dde1ad72bcaade2e3b62ace864bfc253a1b59d8681c8ce9917

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.78-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.78-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 06ab7088555888b1e0c431ccd883ed4529c495b39f9cf4d39963e9ba476540c0
MD5 b5a4bc7b7c210464ca7c4557f2f31651
BLAKE2b-256 e94d2bf24e5aa24db0095872310033330798a0b6e2743b44d26c7d3a9a6185fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.78-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.78-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aefbe2b380974464d2a90700325968adb4f650996fb6b72b01b653cbf50fa9c7
MD5 9511fc63febddbf920209efa9ab6f986
BLAKE2b-256 4cd3c8ca7de4260537b5dd087784172f889463597d5c0b8eefe940c9068dcd76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.78-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fd42143606a380e52a641ac4a42b693067e0999aa753be9815b6f8dfcbe45cf
MD5 4f132f4fdc969196cc16ff522e34df10
BLAKE2b-256 219c149b88ce5351d26c85036cf465e5885a4510fd8f8ed004b1fdd0b135992c

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