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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.812-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.812-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.812-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9fd264ff07e4900884ff87231917eecd9d5badea2210990b6d7e1dcef23de4a
MD5 ac2e48b5344f806c463151f62cd6f5b9
BLAKE2b-256 c5f9626eb50e792ac8b7103400e504e69a6fccc15fcd90853164234fd09eb1bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 382d056e0410e1758a99ce2938d60d5051a1812180e70d5ba818ee53620788dc
MD5 2cb8c2b165787dffc5d81ed70f379df4
BLAKE2b-256 8b327f27c082f60f06022d51cf9b71857a2a8d54161bc56bfcca2fd55f072005

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.812-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.812-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bdfbd9cb8a63cb9f23111602f79cc863298ba4259a9b05d435ce3b0e0a5c93e
MD5 61700fe1b1eaf524621985a42a98144e
BLAKE2b-256 885c2e47a727dd3c7b2be9a37df36941f35193a9b3a544b11ddca145663f027d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66eb9bc4e7ed91fd4b180a363f5b9c89d3d3983395afbb8401a0f8b9083ae765
MD5 8951e882804762e5e85901badaa87a0f
BLAKE2b-256 0db70663d1c7b8826849ac82e233b72632fc1607c254ff944b2e7efc1beb3158

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ee6dc164729201a7c5c739469b68039499dbd803b9e16e9529635247245ccac6
MD5 e897d1dcc99d846364764684e7edc186
BLAKE2b-256 9ade27237ec392d20fa81508ea717409653310716074580700b98c6e2a777caa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04f7915b0893468c125ad2e36667aa70e11d054ad3f698e18f24d5f2fda4cf43
MD5 679bedb186108c3e9638644f29e26ca3
BLAKE2b-256 a6e7f5b0b435b4b612e7b785d5a7bd40cb2315dc21ac8d2442492833280da31f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.812-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.812-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecf82572bb4a3126fcb120917c275f49576ff17bff16d2b1b9e4072cf3b8f3dc
MD5 a608a429f101b2bb56164823054793df
BLAKE2b-256 c5cb0c2c01fc4d48e93a3bf7d29b3d9e494327476f7f02bbc78d655c8e40cc2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa7196ab62dc6fe6cc3dcad4dfe94987b9c8035fb3348d714248a6dc06ffc7c8
MD5 a9f180c67936e0f8beb428cd91b31d66
BLAKE2b-256 e63e1f09443d30f8a1154eaf272841eacb5a3214e9de9c0741704a4034d1039e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a2bf40be348d4ee5e50a2f720564bd43797bfb1a1d7afda9b298d0fde3da9b0d
MD5 9be16aecc8a96391322b6e29211df011
BLAKE2b-256 a44fba1b774fda4fdc64661ffc0df9ca709020a75d9f362330831550f8927c71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 27ba65b65d131f866818791a84409cc52fb3001607faad555ca4f460e209b34b
MD5 d05b5b6ae3efd9d435445663e6943fc8
BLAKE2b-256 69c68ec12009ffa4d88bf51a51ccaaad5129296b863b9f19910ac005017adfe3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.812-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.812-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9e308b118ac802e640f0d348276439e6f3e69617215bdc62b4c104b05674078
MD5 19ee9cd6b554684681df9f61ba557f64
BLAKE2b-256 e1c62e4242d9e1a335fdf38221a487a022f24e84d27725d4a8b6b97d5f943b94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2854c00c9a796b9e30653c4bab27283c697ba7bbc8d58c013a8dd6cc77cf09e
MD5 9a22e5e4c7d50547413615f135a5647c
BLAKE2b-256 6a337c8f124721ae72734c4a012abfb47f74dde8adaea0d48ac6d39cb2f523e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6879af6a4e6f744fe5f59f34a891ed24f8d94034d790e97d262d568720c0e77a
MD5 db3cf850741ba3ae0569f7c5f3f1af4c
BLAKE2b-256 4eb8a3f4b92f62620c9ed46e42653913959bd98ecafc8997b2d0858cf935e476

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ac19c2b2be4c9ba9774850ab1e08d85eae512aa5d28c15e262ace8722d16f266
MD5 0541cc3425904d0be98fa9ab98b23bfe
BLAKE2b-256 0aa8eb71fb1efbe0cf85af44d3065f9ef8d829988877076f48915eacdcf7ea0a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.812-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.812-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b86d23cbfe7cb266439037ed3a95ad489426e4e13bc9739a66a7e57e1b3551dd
MD5 0d9bf0baa5c2898ab809244f3132cb1c
BLAKE2b-256 07e54b6018af8bbe28c94865718fc3d4cf979fced1520c8eacb55a514fd3711e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4323dd11a3792d68c10537cfd74da6f8406af314d657d9ac3bc15b9fc146ef8f
MD5 d0d1c70ca3f2a09457f5df6fd00c2493
BLAKE2b-256 afcd4bc8d20ff1dcb09ad6cdcf03e277df97939d10a369313123785887aa026f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6a90d7c8e67e89d8658d38888b2cd014590ca1e81411bdb792f881847d89db8d
MD5 d3801f0c39a48284703d37d41bc7449a
BLAKE2b-256 da594391a3596413bbe48eb014447bd48c78fd562e77cada7e1442a69344a080

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.812-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.812-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e06f49eb8f45ab6cfd2e7ad1a6829906fa05c32d57ba511008acb3875f176d17
MD5 5d6e6e1b50789c14402b28df27158f0a
BLAKE2b-256 1b290a8d76282dde7358cefcaa924cd6337e77da084b66336acb7c4eeb94aee8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.812-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.812-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07053a0beaa0e59331a739843874fcfb3c08135c76a8cb14cbaa2199ebf5277f
MD5 656a671dfb99e56f3d09d546d3eee427
BLAKE2b-256 8e1485ce30d501570daa72a7009433a72cc4106d0aa9fb230515579f3853e1e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.812-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38a809319c6daa816d979905d71d5a5e90466dcd0725e8ee0372a79d13534228
MD5 585a6ac6bfa667d0f0a0d62585f4f1d8
BLAKE2b-256 790f74f527e6a830330723a23c9212e66c0edf2c465b1b6959bb3520f39b7eca

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