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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.319-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.319-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.319-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c503e2ce876299f63b4a01d7231d1b6ddac5c9f9caeb949c4614b679334b525
MD5 8893d47c751de14808041545b57f0d41
BLAKE2b-256 b43d9ae664ef608cd4a5449fe1c85fe56a41a5d19aa5674aed997908e733afb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 edbe7436e612db86315b911f58361f345d2ecfd55107b7f2363801f39ce0ec77
MD5 20cc24a93c775541a577ec8e3fb8da0e
BLAKE2b-256 16c3d46b761cdd0e74b4506788ef12775513ceb8c1d583a85eedcbf24fff364b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.319-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.319-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d794949a0b008c0de9419c4e617720fd4d6f4ed622e86e51450a7e3e15417180
MD5 4148bcacbc2d57d0c45c530abc0b78e9
BLAKE2b-256 7aaec6c952cc5ae122c4dee7f0527898f5ba4b30b3b1cada0c9e2741aeebfd28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a047e2af6b6838aedfdcf0b4456b7ba868f69fc52db91f6d65ecb0c9172f297
MD5 67237a4eb24d56abd536feb1042c2056
BLAKE2b-256 415180e2b5565b5db3766a44f22460e01dd93621b9f69b9d8f2774dcd3b93039

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa08c8fafc2a39c9eee5c57c54bd8421adb38331bc082b883cccc1bda2dec7db
MD5 35f9f88b70c702e80a7f3ab1fd4c16f6
BLAKE2b-256 fac5bd97abe4ce7f746ee9cd288a170f811cfd4488f77a8223b48470fe8c86dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f4557e691ff6a31f86e87378c2c2b8e49461f3c6bb50e1ef90b97930cdcfbb57
MD5 9da032c6bdaec8b30268eb1d7b0bc1d5
BLAKE2b-256 7ad54862fc6e80a56e5f3be0c6dbb255fca3b8c1c0ca2cea97e87341b05a4cc0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.319-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.319-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dbe49a4cc5090a6016e5f16d401bca945112c85e90f696d2c55182e88a9b6d49
MD5 51cd87c28ff7e243baeebef48413436e
BLAKE2b-256 70d470061260a3f8fafb1faedc3a7589ff14ae0e1e783a1d790a3856f1cc089e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb8677ed606e52ef4ed5053ff90d45462f567e311a06dccdd84a74ded670fad7
MD5 8b70fb6d2b94423274106271cd8ade92
BLAKE2b-256 5e5c824343b10f780ddb856174494dc6984259951b381ce67e8ad921beda1d19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d98f1124094f8b59cbdb4782cd6e2fda934ca5abd95cdd87beff4b03fca14e0
MD5 654816e65735bf2ab2716ebee1021830
BLAKE2b-256 cfb718619cc013defee40c9b349cb4fc35ba607d568150fab6cf92d3ce618751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 73553d44147c073da9665fdceec9a0d6a28f271fb2db122d584ddabe07fab554
MD5 ce742c569da1c839a859481956ec44d5
BLAKE2b-256 b35cf512328c576c0230e8bda128355eb675f8c8dac40af2a49244fb766e0351

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.319-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.319-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8dda3b324b705294b08b0363bf23685c7e2c9b7482cd38b370fe8e79c562b62
MD5 31836ea466f83da8524c279161c69d3f
BLAKE2b-256 8971d4b6028e2da9590b42a201abf62df13215d2bf5e0deaaf5eed944b3f630f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7349d90ab1a4913e44ba2da1d8eb5d5e71885ff2d3d560386863b5ddde6c43b
MD5 6686b298dc9f9050029945b314fbb5f6
BLAKE2b-256 d001062fb131fab2892118a9b8d66585b6ef5b103d7ec8698263e1c9e41f7ca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c3245f147e3908c9a480548675ca616b19ee8e28567b81c9be6649298afe3d0
MD5 d22224509145666b8d7e951366f4f073
BLAKE2b-256 1e7f88107a77c4ff20eb57fa1d7f25b7481b712cfac5e9c029ecb056f228a267

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c6e437acba697119fd452f60d4ae55eff77228c8bf3164a64832d44f3a88f806
MD5 8169e91eed38b278b90b1cb1d663e906
BLAKE2b-256 afd6a01ecb0ddcaf9f4cd22f3395afbb8506d968f8718f70a4b39a2cfc529163

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.319-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.319-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac375528d56a339fa20705d49f6d66a03059329381324949aec3ba0855330ded
MD5 45d576aeed35e7a8e492a42a4a12bd55
BLAKE2b-256 6ac8430626df31830a6353f131ed50cbd6bbab78008a7c4e8dc64aada95c262f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a128c89b8b0853350d0c9e5e1e6829e0fd9e4adf40f10b765c850939bbe86ac
MD5 e7b157ac0603f294d79e87581484110a
BLAKE2b-256 e5381d0d85e9111de1f1693592b782aa7630f46bbace99dad4f5515c0a7bbdf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 857b617ce483b62d44de63a0d36ebdb881076e42310573feedaadd38d264518c
MD5 e9d72b9a8792c3249f2cdf425ddfc05c
BLAKE2b-256 537f1f49b6a57ff0b77ab14dd2e515c1b3ca4d03cd7c027ee045ca0eb8fad41a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.319-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.319-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9201fcbf07aff36eed17947fca7e0e1cabeb0a9759388f0460ae9a01c44442d8
MD5 1857342e4dd61d7f1d96c64e34a41b40
BLAKE2b-256 4fdfff99cad6951f5c77e86eca899c1db29f6b452851f261a6d3bff167173672

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.319-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.319-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c0b50ed86a7a524167d9791a41347c451aa507b16d98d26c4885daff3eb3d19
MD5 182e90f9d69b271ecfc7c1911ed50930
BLAKE2b-256 ace2cd596e46d5c5fab2c3c2f9f64371ff669b0f52d1fe8cbaa9772cec50de95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.319-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4322eba802ee8bd96115a72957a35e973585a33d32af33aada4a2f00b5e64cd0
MD5 6725b38c8bd84b28ce2cecc4388279bc
BLAKE2b-256 9a032e2e6cc363c0804bc76b24dd2ab775536e6b9d4054e172382caa2ccb688a

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