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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.50-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.50-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.50-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.50-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.50-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.50-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.50-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.50-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.50-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.50-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.50-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.50-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.50-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.50-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.50-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.50-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.50-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.50-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.50-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.50-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.50-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, 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.2.50-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ce4b59e0a1a558fd8bc6da7e426ef57b2b06fe3a531fcc4a31a813240c9cbe4
MD5 5db66b3df1dd69694d4e22251edece3b
BLAKE2b-256 44bb1eacf4eb86ee7e760354ae49e314d6b93c492302ff8819d223a84d98d54a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.50-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b03a9fe67c246f084c0dccaa9e9a4a0d02fd49f04dd5657a2f79885f4d863518
MD5 b79aa64df5a4fca5b050f1b13737e3fa
BLAKE2b-256 ab73d08e51acd9575964328e088c273059fdf000440835aeb942db1cc8b8962b

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.50-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.2.50-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1156e93043abfa736c82918ed0b1231037d706ee461d5a59b6e642a8f707582c
MD5 d87f12d4c38dfa335df9224dabdb99a0
BLAKE2b-256 d4cb6f375addb19077cb6934bd1649a5817cd86710a81a1b1479d4bf16ff7f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.50-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c35f3687c9a8c9c7087e1d9313bf54bee373c4d7976e625c38e52aebbee6487
MD5 f08a3e96c9ea431968d946183f1bc139
BLAKE2b-256 dce8f63dc56bae2142e46aa561d0f2bf58d22b282407a4f71f52400b5f4d7f2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, 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.2.50-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60083188f367b634ac4d97fbb52fca449266b5791160f3461e63636e978854bc
MD5 6fd70ea02c7134f8507cd3e305f59df1
BLAKE2b-256 9abaef77d77a2bbc9adff4a77ebb5b8a2dc408a0fdd12b2ed9557b87cab495d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.50-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ff50e6d342f5bcac06b6bdabf4b24d0c70f4323d08a2fec4e8ec77c13f3bfd16
MD5 954de3343d62d7a1e0bc3c131ecbc52b
BLAKE2b-256 9d2c33ff53de3d455c40d26457764c2585e47290e0b284b4410dfa47659db715

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.50-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.2.50-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 848db2bea9ea4c021e4e95ca2e2a2bc5ef434f8771ca23131b54e90b37e2ee0f
MD5 59ba3b77fca4f12db6da2b6eb32e73fe
BLAKE2b-256 ac24b4a6cd72b344d17e463cce3f94b6c6aa5be9199066953cda5d0453a21c95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.50-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1e72d8f8e14ba56dfd4f1bb0fa2ffbeee8e059a53e14972bd32b15fd37b3bee
MD5 e9f17ddbbffb798c0bd1a61c1eee20f9
BLAKE2b-256 6e2fdfa0c6e7440701fa0f292418d58275a5c3e14f2d262d7bf78105564b1a5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, 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.2.50-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6a6df5c95d79b22e7ef5539d01fc8e919e69474530f88ae28e6ad82ee76abcc3
MD5 e4b3acca310925efc5ff1a97ecf82413
BLAKE2b-256 cfbc117b13c3c9b1c7f75742200583c48bb54a6dd95a5487e8394a5807d4fbb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.50-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b37ae173f6c9167b1ea9568e3c575ec979be249de6d5d7eada4708a9d2bb320
MD5 ff042f728226266951fa58c033d1d002
BLAKE2b-256 20e0d78dba0599b3f917eeee8f673ff00fa3147c2d5d8c50db4da8a06f34e815

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.50-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.2.50-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5ded7423a536462719a96146f1ff813a14f35d2f5af32f3ecb6e8369be52c68
MD5 2bb3bf01de99c3a5e35d6614a0760310
BLAKE2b-256 88c3ca9965d49aca1e28182f1bb5c318aa61ab2670459b2b27771468bc7dfad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.50-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c70abbef392087673e5e8f45d05a6cd550f5906421fb45a44c109f8ee4b0e083
MD5 590105873ae6d21e078ce2efc56290ff
BLAKE2b-256 cc44e955ba7a4f67a03ca64daafd444b0612066257ee9218e34de32a02b40b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.50-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2dd79f5a404d16e20f663aeea7610528abd470733a077e9ea441359b19cbaab8
MD5 a38a136e26c9d60c4764b83e99e3d312
BLAKE2b-256 a2451b0e41f9bc58ab7a0bdfba1984afe34bdb16c98fc058ccba0f1db33c8986

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.50-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 65cf077dc604be4d71d379cec8a205a2fb0543a978ec5559b0dd5b47505294df
MD5 a0092b92a61822e359145f72271dee11
BLAKE2b-256 ec87b676190a43b97f8fde96347f664d26ed34e74b59c76527d24bf3882db3c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.50-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.2.50-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d9236070d43f1a2ff757507ea3879ea1e88da364578ee34198bf960a2a9c8f7
MD5 383e404d1b98b0178b97f0f8acc85637
BLAKE2b-256 3c0808d5f1f25f22d4cfed9fbde5a763d13338e0d836882b1e307ad43259d4db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.50-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2eab4e12dee59bd44965ca13ad99e872a59d0d36db87f5fc5d5cbd6351ae5bf7
MD5 11076bd71040358110b389f55e6178f1
BLAKE2b-256 2e2885a9781f003bc2c1fde5a753f9b5da1724b6f37183995233878939b998cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.50-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 67cd4cdb6df50189763898b3c276d6f6c05f4490da9d6c41af86426ee601a1bf
MD5 4cb127d449d965c5b689fe7b28d96fef
BLAKE2b-256 c525174222cd097711518d8a10638d85cc1d1b50f3975107695e599ab57fb356

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.50-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.50-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dae63e878966d82296ed0b194e5689c44ec57c8c13153cbb3e1a751f4c1b0992
MD5 25f076e45705dc7f40d61293a743b891
BLAKE2b-256 6257543788d6af5ee6fc1d5be88cef8c44c4f6f6f569c21fc4e61d6d0e6eda76

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.50-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.2.50-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 930d0e14963858b76cf238f6bc4590e2bbdea2380226346a1709ab3431f11ecb
MD5 4bbfc1a572cd0f60e2d8aada498a58d5
BLAKE2b-256 9b0bd793ddba4647e78d3f4e289c0af9c5c79cb8b76cba04b15c9a247c867353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.50-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ab4af1c19892ded63ee480bdd9f267647fe9b90637909e193ea87793f360839
MD5 e00271e837c2eb616d83cde8d7b29361
BLAKE2b-256 8a9817f58499b8e41d463d73094c30d074982b62cda4010b6bb1e92e072f78c4

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