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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.905-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.905-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.905-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da2172ace8106debe52b00ef749ef06c70297397d9201d188e4998f5eab58fcc
MD5 c6a19aefd5d5f440eac9dd1d014b7599
BLAKE2b-256 fb5d2e6c18df734c8fa543d1d61f123e5398979bfb9d6cfc08a675db11bee735

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 091ee379cdc36762c67af57e239c66c69cb241e919421c626849281cef463ffc
MD5 74557f22f49ea89b180b7e7892a1e023
BLAKE2b-256 74fd65f2b1a70a0f3e2b105d3dda1ec36a5cca755b613a2b39820ec3f4119aba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.905-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.905-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d158479b826b84b39bb0c4b98d518bf8c79a7165c73889cb3350b856f1a843d5
MD5 27d93f84c77c7261331eccf82d008e03
BLAKE2b-256 6d75eea102ad9f19dbccfa2cb7f2383c99c3c06ae58adefe48c0dff038c803a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8967cf417ec77ee1c413685a86907d34887b3572c417c4686c3a1a89acb3743
MD5 e65e5b35e3eb65ab01b28e95d17581f6
BLAKE2b-256 20bd78bff271ee60953cd473510ccfe88b5030682cb73de40119a3a61dbab092

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f96c9beee2d149db8594de22826e8884046f2ae686888590bf7c68a27541fb3
MD5 eab6870913b704506542f4165aba0b68
BLAKE2b-256 44fc343dd81572792097cfe8d67f88348da892afedf3a83b2c1e77bcb233af16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f7544033018aab37d6117c375494a5449171104ce2b0fa00d1f014e0c2e09a56
MD5 e9fdc3b0e063edb587bc8996342909c4
BLAKE2b-256 3d58652b3684e40993b07fe13d763486c3ed3d5361f27797b4af724abc6c3f9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.905-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.905-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 749ec7a8c57078e5fed33f1fe438daa8f50c90d9e27c620f5bc1afa90cd9696a
MD5 76da27de1fd9fd5deb3ea48984e4c199
BLAKE2b-256 48b5cf257663bdea4572ce1aba502a758121e9fc2a7d37b693b277c7964d6da9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2ac1be7a54b85164cf1e49b7e17835d720d5a62c195ef90363ba0f4196c54a9
MD5 6f9bb4d0ae6286184c7c229857249904
BLAKE2b-256 e224ecbb8d0e9cae1f2b392923f7062c947be304ef7fc7fa9e851b0ca209dd44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 20f3c96b3b543a08bd6e4c19da4c6c87341dd9b41f0e4de785f4cd62b670fc68
MD5 1167f92f465ae8bfd27334c4be05f0fe
BLAKE2b-256 5a7835dde3013ebbc10c8aba472e55894e42cf4d3b6f95e39f7b1ec473b95629

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 adca747aef1989934e827df99f3341fe0fa1c55790bc04f677e37e7f0b0bd25f
MD5 0b9a6c2787eb751501a6763821281d32
BLAKE2b-256 7c5e6de9b06cc6840d6827a0510e2c34fd40addc4ad6c9f6ff0d92e66217861d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.905-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.905-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f44f2ee7f8c24d4bf0191455cef14aab8b1c29c676b27b57ae3f1b41415ae1df
MD5 703c8ace2af88c5386789a3859869e6c
BLAKE2b-256 61f851c225bf14bf2441678220830cf6ff01d873bafd9e7873b09c9c2357bbf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf6b1d0ca8bb78cc3b56027cfe8fd65de0e3eda29c8802aef3198ae58abf563f
MD5 fae4a286f6a95bd7e157a6ad6bdff8db
BLAKE2b-256 3de6de3fc53c82f649e878f647fa5d4a37bbd2144bdb0fcc3e823c3e6ca6cfba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7780d8d75e40778387b411b3a035f1f80dde5f7e6f9cdcc020e539e4b446391f
MD5 400b43dabb74b00b78790dc311f32d15
BLAKE2b-256 0924623fa601d9100b7091d357fcf507c3c117607ac0c1f8ac45a8bf46af7f61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0bccd2e5a327cb5b0d271fc8d6afa822fcd80c38cd5f3f250e49a6fe610d9970
MD5 dca36b7231404d004d2c017f5c1f6b80
BLAKE2b-256 63a36ce7bea0472490ac2b94689b146cf85b86a462fcc2fd1f949a7697cadcdd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.905-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.905-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f814e90d2eb251c5a28e7281b4470e0371e888bb755e0eadf25cdf203c23eb7e
MD5 52895572bc1c308ac36b2a5d746b4357
BLAKE2b-256 5f15f36ef95c0a3a953ae6dc0579588cc3b90ea3982f5bd5ef1ab1df83b23888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ad841bb4b046e1f029b5259df82ac0422468a1a43979fc28e80ef58412f6793
MD5 c96bbff9d2575a87c54ca0d83849087c
BLAKE2b-256 5fd9a40aa3ea911890d6d8c6f070569f2b7ce46c8d330cfc64a4cf2ca3ecd963

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ae2bbcdcb0e177a1ae7ed6a9c688dda59aaa326d3d917cedff1aa6045df9e1c6
MD5 90ad83cc77f5dad31ed6584fbf8a7d00
BLAKE2b-256 63b832fc900b3879e9cdfd54c60af6c99fb6f0bfce4b9ed68aa99306061f6100

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.905-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.905-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 83bab609d6e3972c02c8528fd7d14cfc27ea56275db5745456e864ee93d919ce
MD5 0aa511dc4e3fc5f690eae3a5f1ab94b6
BLAKE2b-256 93f2dd6588bf47d8f6fdf301361f7c757e5cecfb5f1f7b16552c30719bd92680

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.905-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.905-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 626a08e787a48496362fb00587f7d142291414c246252a75aff802584e055ffb
MD5 3a50674182c8f2edf9636bb9c1972b92
BLAKE2b-256 770a723fe7c2031e2e81809b6f36c1a5fcbffb84a989a4b250bc07598989f42c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.905-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 115f0002f014f9d796e3c28b85ae3d8d3119c7b27dab394c4a539e0298125847
MD5 d309cabb044e1a3514c6b4a1d4d4d29e
BLAKE2b-256 3f7052a52cdf5ecb93e733cdc954115074266482318c5c6ffdd969d91502de56

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