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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.821-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.821-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.821-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.821-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.821-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fbef0a37ccd0d6e544f417d1b8920f05ff36f2a9d76f721248c16d33fbb5a269
MD5 924301b90ab3a41dbc9e4185fd37f544
BLAKE2b-256 ed2b80a4a59d117790b03a0c38cefd06ad853ac47b341d2c97558bb618e315bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a4f75b2179df64f1c835129c265ebe593c7e229bdebdde31190d4805e6400208
MD5 6f7fbbe02a95f42b916cde203a56af87
BLAKE2b-256 68851d950a6d460979a9bb994daf9ab2633bfcdbbcd27d3b4c4a3115fd1a8c1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.821-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.821-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41c2e0beb79933c7923c351f5075bd33e502fabf3ac99c1742bee557a3931f90
MD5 89fe7e0241a4a16b08e170cba8f5a056
BLAKE2b-256 8ff95c4913287dea0d6abed6f85aced68b5d869a48a8a699172bc7493a898f46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1970ba695fbf7e6efbb8aa1a18010fc944017b4f4a7b77fabe3ae804a8aa45a4
MD5 3c505f7e080e4e2dcd9b3b161384dac7
BLAKE2b-256 d170772695dad1ecf5881a42724a558f3f9a2ba9a246f205e2efd1ae7e8df7c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62da6daf22f0ddfb10699c289af90ee9f173d1b90338c9dec8f7b34dd38d7a49
MD5 8d5346406338d00b3b28932a1959df1a
BLAKE2b-256 32b5e67583ef90193b9eac6943d16d12b22a883b14cf53900f99e5477af98b5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7a48cadfe7d85b12ea3325a09e57b2314919519f3511197ebb2ace2fb572a5a0
MD5 183edbc249f77aec7256e50390ae91a2
BLAKE2b-256 6b62f21caf7ffa7f4d8c25c37ee82cfdd967e4ec52434a7cadc8b2463e91916d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.821-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.821-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02e73fd42a024a79c64e922482ce3e905eac4fc899a9da20d0bd8c7033b26a56
MD5 9555fca5a221413a0164e9231e794bc9
BLAKE2b-256 0dbfa64fce2864f46b2baa681a854d582a4feed562f1cb2a49fdafc00bcd7c45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41ef2d397db112def3a05d7a34363ef02f66ba1b55a6b308d6de35254b608b4b
MD5 d42c568f7db30941c71058ba09758c0e
BLAKE2b-256 7020edd0904819a61dd9fd5c1999d079998ce545e68238ea2278dc91aedc54fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aec93ae163b5507dc8545e5a22d8e1c6bd3af9951bc969e34af5b21a96c19efb
MD5 deba4226d300dc82b40a2fe1df47a483
BLAKE2b-256 1b592da2ddfbf4db66a9cf5e97cebb1aebc42971e9c06143fe89825ced43c189

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5ee6dbdf124c281b08e273a9688b7117f4af664f7b5bfccedda806791ea0481e
MD5 ea8fca12a960ca638933688117400d7d
BLAKE2b-256 688439ac3cececfa4d2a9bddeecabdff6bbbfb4ea67844fc26d46b3bbe0a2bce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.821-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.821-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed6a34c39cbea7a0bb616290274b2ef1ea5ad8e28dd5b9d48337aadf3108d429
MD5 49eccf9c87d2be3bf392983574ff1120
BLAKE2b-256 4468dfbeba4d2bbbd2836b4044ed7d13834d3728aaafed3b5d89ad7532521c9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3f0547fbe075153f9f246f9c52ae75a5148563c686e05e48eb3b43e6de04918
MD5 48eb984c1b6aba576616f51336542e21
BLAKE2b-256 fe7ccd4a72aa2a870688140ebb31dbb4b1a5389f2259e181dc32db3ec0fd6000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 461984f742f3bee1ffe5a63deeee577333e3424baafdacc34ae8defe5586b637
MD5 16109fc707cdb5e35c8ee414e487cc4f
BLAKE2b-256 c547a1daab8a65566b5cf81fb10be746edd7b0ffc04c49357ae8e444ba89d615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d3cac7f505f800ef6e3e24e05144bd478b6a00d56250b7985f927e7756bfaa86
MD5 5397b6e36c45a1d2326a76c67753f24f
BLAKE2b-256 467733d34fe7b8dcd56d70fa33df470b2a7bcf98c80cdbc011ac9a9666779f06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.821-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.821-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc634dde8530dfe2ba3c6151ef16fd1191ac00fbadec225eb482582380778eec
MD5 c14b1cff599141d65ec64823b40f371d
BLAKE2b-256 e3c7a1316c3fe66b725c8d625f96295ba8b66e13eb9363018ffbffa9b5033e72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ca7fdb9f93503ed87ab690b43da7ba1e5e8ab5aab27bf37be96406e9d4856a0
MD5 a6325e09b804b64958814377046075cd
BLAKE2b-256 a83707c8c208fe1552a633111e067d9adccbd51e1492726a599c7b30d96e344f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a4d53167e281a72d6c3a12ac77990922f31ee48e14349be95be11fc71565eee
MD5 1e60c09e6107253d8bce52ed252d7bce
BLAKE2b-256 e0ec5d6c60399699a972d32ac0d43533d3817a5c6b9f3db96a4da9d43544f051

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.821-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.821-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5675cd33e02b4a21ec0768999cde0b9f38712af00fd2411303dcf93ea0c6809d
MD5 48a29e53cbf28a0bb4767b7226abf9b8
BLAKE2b-256 d86303e4df76bdb2dfc8110578276c61624bdcc521b38f308587a9fa8df0a860

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.821-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.821-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2eff8e5b03fe5db80254e7b85886b06cac0a66b54761445bd461e8df62ca6221
MD5 a36a40a2f604f78ef3cec7fe5b813642
BLAKE2b-256 857ac681a7ad5133d75296afea1adec85968439c8d4615609ca27d518cba54af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.821-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 866d68762828c4f52bff419ef35d988fa6744c4170f2fb309b02dcc1057f744a
MD5 7fe524e2ca49bee8f8fcd107b6a1cfdc
BLAKE2b-256 aab9bdd8d4c5ed8cdba5780e415d6f43c6a22414cb22e80088b51d6b1dc810fe

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