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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.171-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.171-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.171-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6ca558cf9bfd11941ff83e31d7a66f06f194d735fbe0d1160c5aaedaf6ac553
MD5 a3ab3ab8e6bc4950dc97b91738bfcd53
BLAKE2b-256 0948c770a1a3b5fbed22d2826cda8395195d6a8f167f1407c9e66cf8052b1ac0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0059eb049152115f6446e8b870e96bf7e83ddeeca70ebb94039e5029206b97a2
MD5 d4db8b294e5d17de55816e11c81e0d3e
BLAKE2b-256 68e5b336e55f1e27ac873faad949e99e72b31ee56851a64d5cc8e02488146c9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.171-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.171-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16308062c1e724d1473dfaf9d9d0d00d234f1e1847dec365164999fd2c9a0c47
MD5 e7a3f67ef501ec30f7648deaef2464a6
BLAKE2b-256 bc56bcaee13a1875ffb1c2c7dad0df079b020ba4284dc2ba429dc9efafcd8bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fd8e7f288ceaf1cdbfd05942d22dbc33f49c9ef3ce4e06d5e6890383a24f4d6
MD5 c6e9f0a921c3a736eae6c6c51d2bfada
BLAKE2b-256 9cf4ea53f93dc527612162bae4cdceb85905ab9790bfef07ec700a8f8f41505b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 483e3fc26ce9688710ab4a275d726fbabd2dc402c7e812af4844a1088b0542e5
MD5 d255b2b3933a6c18216942c3e977ec88
BLAKE2b-256 5bf81093e4dff31f745324c9b20d3b6d69968e01b867fdf8b547400038490ffd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b9baa795de9c577b4415dc68524e75880be96c2b1716b47e4ade7c924d996d6c
MD5 74c5ee87284bbb399bab9c3caedcd4fc
BLAKE2b-256 0b1d5c9959466a5e9c3320cd68ca9e89a3353c818ed7fb8b037e5e3d013fd815

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.171-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.171-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e673e79811a6844a64b9c1ca20b05a27710e3fb33593cdffe4886c7bbbcc3434
MD5 a7d096a15f7baebb6aa5ab4da378b0cc
BLAKE2b-256 14b6162a2b0f69e067884e28fdf8de7d2cadfaa16184a646552ea940aa18c546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34f54a5a325d294a7690139a9123f2288e7875c668f9b50a441c308c46111022
MD5 e165f5e087e58a163f372016238f35f8
BLAKE2b-256 6d8d198b36d6afe16fa446b76209ad310e9ad2d25b22b2f347fb6cbaaf44397d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 377b4a961a6ae3254c8f1f614ee65ba3253b4f485f8d768b3d8dfa91799b2d65
MD5 1b5e234a0a905dc536d5ee4e051d3abf
BLAKE2b-256 18c68499e055e4ae2c2f8e40b0e7a9bd220214bb5332e06d684a086146c672a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1362bef04c05a12c41e4d24252ee81c10e0aaaa41abd63542fb04b94a917192b
MD5 424eda23f77b090adcf45e5016d1d207
BLAKE2b-256 cea749ed4672467397aa68b6a604e86d2ed1c7f39b0246b4203f2f55c0f8c806

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.171-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.171-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6961d9bbda298f4497dc57b783987f333067186852fad9e96451a428baf166fb
MD5 6729bc5e198a3e50866307fff243b186
BLAKE2b-256 ac2472159de20f06fa4e83a3042dfec6a698884bc7bba28c33a286b11177541b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58dbf3c957c977744525eb50e9cd082483333fad4979851ddccb282ddb9b7646
MD5 7c82aa2d8591d8da1ab0df3d84b52027
BLAKE2b-256 087153d33174a57cd147a94253a9e7aab5b851c10b06410daf92202729930b56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 384336fbf4a5e4b7139ba20a34854d487446dec6afe606d0a5c069692068fc61
MD5 8f79d7f93ab09d2e3342c4e91c42574e
BLAKE2b-256 d2bffc75f5ea02bc6e41cd14f02d7686d217a49200f05d353e292de70d203eaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 42089993ba1a0a5da5cd2f10ea552b236492a75c5da9978a8256a7c6af22c33c
MD5 8102aacf6999d8c8998e05404c323535
BLAKE2b-256 34dc34e2d0b45becd9bbb0814a7e953525c7d151fa69e630eabeb8bca76c2ed1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.171-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.171-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4bb492084c08fb4eb4f7c249cdddaacca3e29a0ca102c9b7d2d33346f34f6b7
MD5 ba0ef853ac3c97c4fd4664c2d7ae733d
BLAKE2b-256 d1f14b5c0689281b3921d25cf0e63b8f46a7e599562d2caa78838691d5d0f41a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccd57f7f4dba4b75e4f62458ff67d2ec0edf538c42af4dafd6c46dd0c726e83f
MD5 4b132df6afb4ba440cfdf35c6c804646
BLAKE2b-256 b84c789972855db0d3c82fa839cf2caeab7986f583080da083250e961c45e795

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 23f9009b86363c4901d7d11dfea5a950a244ae445a9c2898e974ce2883c58dad
MD5 6f56fafa01353d83bd8477c163499686
BLAKE2b-256 76246a80174dc76bdf84e66bc16609f2bed0ba68d397e004e7f0a823e3eb5673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.171-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.171-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 034144d1c96badf091179a90edc8db64bfc5cf9f09dac312270d0a4f00b9bba2
MD5 a63f27e445f04dbfcdc6eff8e2ec0648
BLAKE2b-256 ac72c33d9b16284e022007e5cddbc0f75839df462b37775ea73d2047fe391c72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.171-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.171-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5483cca1954c6e3204cbc3516626768a7e4c673f7ae8c383ecb136eff9f107e5
MD5 9043efd500a866af5bb8443abf73d0fb
BLAKE2b-256 c95b0eebbc8a38f9e85d0adf57e8541389ba9893618dabe07f94f651d6e1dee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.171-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 097136ec851324c8b3d7c37959b77e29dc84760151292a8429bc2ae92b1eb38b
MD5 81aa23cd5e36d5ffa07be98641d70500
BLAKE2b-256 5ce5fdeb465a6c8b66590ea81cfce22aa532862b74af7e265eae6742bb7ffab3

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