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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.386-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.386-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.386-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73e65268c534e0a528c8553cb7d934992ff3a6e25b35d91f88b63820c5a97b06
MD5 90696883e466dbce70bf8598bae29491
BLAKE2b-256 13cf4a258605a1a08edf8253a469b61b99ff3c313513a9648fea97035632cfea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e1c9cb89d16c167a39ec8179ed19fe879183bfeb6e56808e57ed8daf91058d9e
MD5 4f21c36e38728f89782fe5c04f3cdffd
BLAKE2b-256 eb7771b1b1590fcfb38ea16c41ac93006bb170cb2696ed40b250e2e8e0af5ceb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.386-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.386-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c04b13b66d7a75f9eaa5afd3d27cf5280f02e3286fd637b2be556be9e948274c
MD5 f77dbc10fcc14a54da959c3af7ddad39
BLAKE2b-256 8da76a5fb2b36a7fd232870a9eeb22b4b011efad9752231691d34fa3e8fb4e82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f611bcf6bc146c110f6ef2b680c7c674ee7a45a1862844c95dfc40adee6b854
MD5 2071c222d3906318df44a7639137031a
BLAKE2b-256 38e9ad281b4d43f0e5106a8043fddb770a6debcf4f825d4436e0ae27201c0453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fd794858304139a3c71ed06bc58bb2184eedef3860062c5e3cee5e6e3bfafe70
MD5 74b33a1ed500b88eaf27560e2dbdd28d
BLAKE2b-256 7f80dae88b20f3067eaa6ec23aa8c0ba19ae36a2293826125b033766ad8c0bed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bb5902b627a5efe2a99c6cae64fd0c92f4671044221d313c7489961956222c02
MD5 a8e15192c730d19f66a54dac2cb66f42
BLAKE2b-256 109935588026ceaee90d5760bbfe5d503dc496c40df8e68bfbeac5f0214cc21f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.386-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.386-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7983840bd1742ed740425613d4a17d22b59965d35e146f88a2a6f54e90c39b3
MD5 a131b8b0e85ccd80015207db10db1a15
BLAKE2b-256 80268f88cd6cfcae3bda65ece846f6fe58bf4fcaa38cb4df48a77a442c2b8c61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0600270bf9afbcfa03d28fc0c09bf18205baaf88e619081d4ed856a266717c31
MD5 ee0a36c3ba099115135673779e9e9cd7
BLAKE2b-256 797be50ced2480ec19343e6a2d3eceb55e091f3b92740a7d52e7e18456e7e870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 09aab83f05857fd688e8a9afb62f6e8cdaa9fa48f8830a1e9d4ff84b54a1af09
MD5 985fdeb101dbf427af253d81e0506904
BLAKE2b-256 f2718c7b34d8fe12886a0df7ebcf8fe9ccf30dbfa3bb6b27d6dc341b99b4fa3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cfa4dc3b79eb73b7546a05afa98d9098a90be93d6a0cc5f2c57797669e480548
MD5 465d88c9a3e9afea7fd916de6556ccf0
BLAKE2b-256 b0a6e1b5181cb7828c7e1ada2518fa17cb72f26866ae62a6ec7dcb0e0ae52806

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.386-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.386-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8c8cbced35562174eb6343d47cc1f313c446806bd3412d93c9e63e466d4b7c1
MD5 7c82e36864deabf6f5900b1098ab0cce
BLAKE2b-256 bf53896255b68a8ff0659e9ae02446ed805f56cc4faaface8e8516bb1d203b0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6361e7125fdc44f15f3da973896db507dff24019dee79de456d3e3d0e8b1b906
MD5 17bebf9bba4e42411155d3360e9ae483
BLAKE2b-256 26f46f3deb66aeae1218058866b85896bb19730b109175e64a93e8f277f3f9d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea1e0d299c8128baa7b6aaf8e19d1547ea80ea185af9331e85d856b2d8336a09
MD5 f5ee0252dfc7e0b15d2872254cb52109
BLAKE2b-256 ba9852712dff0693b6778af9f4154c98cb19d910c28b42c70d006b1cd1a73c99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 336d43be5379b341209d601fd7b91085e84bbe58694c6b0540223924350bc256
MD5 2d90785a1c1c57caa392bebeb37f4e26
BLAKE2b-256 d83e139ef1e64a3a84fece3d6fc2c314c58a0dfa41ab53a7948fef382494fdc0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.386-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.386-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6cd2004590e1df2df29f1e9d56b9321c81d408b0c5c5fafd04de6393e5f8f6f
MD5 638832e112061d6da0e7b8f3e6614921
BLAKE2b-256 49a2a44171156bfad3e357cb4307ecc4dde6a465e33021359bbc920fd6d0bfa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39275f951b43c206debe75f35f4ccc4ae7cf0c6eee949b7b694f498c9d9c9fa4
MD5 ce1f0d3b92f48d036bdb1e15f6fc0e37
BLAKE2b-256 072886089196f890ced6063ac39a500af267b7261cd41dfa6688fbde4ea435da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e88de59c7321b1e7d0d0b795b61f4c884ec53b7e49cc71bf0900fdc0a0ab8e70
MD5 a75394b442070b3bdb01769c7a39df30
BLAKE2b-256 98099ba849d8cdfe1ba1c87ea931db02f71e1342bd518a706ca93169df4d3c1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.386-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.386-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 146db14e1dbf89089b6834ec694c4c024fe73ac144162be7af652e65a38caa2d
MD5 56429e8f1c8157d8af9fef6fb80da05f
BLAKE2b-256 f3fa6f4247696d81145e0ddb9fd323d066c9f031723a7db8b3c18c77b6341aa7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.386-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.386-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b1b10333869df64022845fa03fa6e303d3359661dd497cfb5e3f9427e8bca13
MD5 a809993a7873de5c1725681759a4c318
BLAKE2b-256 23bf08f3f443f0a62d3f5f312970676650e1de5a4935c6dc18175a2cee67a8ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.386-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8d76276d64f62a9b18fc3add5990de250e8f400bf39c18862b23de7adb68a39
MD5 e47819a71dc4214285087f9bc4e087fe
BLAKE2b-256 3d592c93e25ef47fe7d3d35228b545c0e72f6ff14e78c9dac1441c5dc6e67770

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