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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.722-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.722-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.722-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8f288b3e616d1a1aa6df32c11be41ed3ad550ad9446bdfa423ee66fd96256de1
MD5 255ed9bcc36fb21d28ad7882f40f7803
BLAKE2b-256 bf8f5fe20ca6135a8aa91ce01edfff80bdbdc302fe9f1c2e10f1ce7c0c10cb11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8985761816f3b7c13ef4326347033b6ff2b3be4f2a9a8467c332cfd5249c3f30
MD5 6862520e16a979fcfecd9f446ad22271
BLAKE2b-256 57f5a542bc47610a64d3bc101994efaf9b28659425efcb5fdc0fdb552926d7f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.722-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.722-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e93d7da7ff7b266552d3a73fbb1b97028695fa54eddfb965294eb23c715a594
MD5 56895272d3eb7122566af0835e4c077d
BLAKE2b-256 174711c80230100f1dcf92128ce36bf863e054bf86116239521408deb0be0889

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba4ac0fe7fc85c840aa44ac2dc90c8d402201923c00d6adbf9b19a402e013592
MD5 2b4cd593b348f4043373d1f12d5be0f3
BLAKE2b-256 f12259b6c809fd0b50ae7edc02381dcc827c8053590bdfc8f054738be852abfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 24a501d84e9febd9ab82af5bd029734c665eeb9fb4c197803621917f04681818
MD5 fc12dc4aaa0365adc4e4522642631d0d
BLAKE2b-256 98fd21d7506575fa6e7362b494ac713f6ebac1e541f329992be6bb814a4401be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 25e32448cc1c6c0a4629a241995e68acbdc947559c41ce68e053e0332b66e66c
MD5 7b60f8f8d876e68afcbe0c5132c4e726
BLAKE2b-256 df1c388ed04905ca5044587e469603cca6e55b58f23a7499cc1e6e9d50f4d4fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.722-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.722-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e465e60ce9f9c6ce9597e00eb0b720b5afe38b93e6b3100549748a900a39667
MD5 dcae01f267fb300eb4b5ab377ff25fbc
BLAKE2b-256 1ca81fb578f5beae38468dbda2d7fda465123e377b3758cc6fc07ffba8074403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fa49d27b017cebd9261ae3b2ead9ff9bac914360084b1602c266b6246aa6b77
MD5 25ce42d7cf1373015f5112d3ece75d11
BLAKE2b-256 373ce8f6d7b837986b1880a1f8d65df077a5e07a5af713f1bd84ce143f90d404

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ef1fc198c54553f1fcb47a3428fbdfcc6f6da18f97dd57fd34dbee4bea14e52
MD5 9caaea0cbdcb2092a237bad3323aeb67
BLAKE2b-256 e6aa2f08424db97b560bfc94fe37a9d2a23020da4e4e3f49462d356db4cf48d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cab19c17d9e61f350ab466a5bd02c602837aac4d0ebe321297876a9cfcb6d6ec
MD5 7a93b5e07a7fd354f5e80522e8a1a1c3
BLAKE2b-256 24c94003e5bd3623fffff41746823fbbd32bd90f874f9ed0187ca5a62ec54b95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.722-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.722-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4670818b19a7e4756368fe8bab7dd2bf41b35871f9b0fc7fd08942d3b8f71256
MD5 3585e7429ffdd6f1b94a66aca731f523
BLAKE2b-256 efd735292a598ba6f2fb539ab2388d5e541849cbdf097d163ed500aadea3601e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a94d734a9e7b32aa254acbce667746e45fa68e2525bb438f655f55d0c88e433
MD5 9804d53d24a7fdfb6ad7415a21be8ba8
BLAKE2b-256 253d6ec22c661894e91892dfd404ffec851a3181e6d92db0c214dc46cf5106ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc11f73d491c9e5421feec0738f9ad26742852e35de71a0064248a7087075a95
MD5 13bd91a37a4d3fdd1a06adbf3f0acd4e
BLAKE2b-256 9af448e1fdb5cc641aff48837a39e33d9b4df106a65a0350922a06e1d66cc868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a554c2f9c453b869b0d8dc76b53acf0ade8b9379e245048e40d69a40d7ad8d54
MD5 2a608d4ca1e8c30985a541c839d8d3d1
BLAKE2b-256 c3dddc9c1c9677e49253fda448e9df6f7ac9a9dca14888f663319431b61f6776

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.722-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.722-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e7c9ab51dc5f6cd2c34e479900604777147102b3a6045e8d2565c5e063996ca
MD5 d1f9d472bd51290a58ffa9d6087821a6
BLAKE2b-256 df1d0b702e9dceb69fcd696ff5e4046b83b1016463330725d494989d3e6b256e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a81041a30bed38da333c48f5a09f8d2347eeb3f21297037d6ef15d2b015f7887
MD5 be665d0b852195abbe9c4beba1311803
BLAKE2b-256 22a364c8f6d272f2e36c1e7121aac9577388d799917b5ae7d94b68661d7d802a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24682584fb0b501659db450e931b50269234c1796e771e227a7ec78706e5104d
MD5 da8c9d7c1464c59393b032fbfcbecd72
BLAKE2b-256 02692134804b193157d5ef6f57f2745b3460a012d3ab416c6db445be8a3a4374

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.722-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.722-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d28d7a2583dc45d8981cb082e004fbda702b2f9eac5472a915345bca3a719eef
MD5 68c0e83456c0a386ea6e4dcaffbd4411
BLAKE2b-256 5e8e0545b34f41ea7bd83f6ec2b6c1f76b0b98ce3e42af7f69e8f38a4ad432c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.722-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.722-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88c18df03c0ba3728ed0796e80469c71e6b68248b92cae6619767e67c3bca34c
MD5 d94941fd60899e68f82981cd56e1d502
BLAKE2b-256 6e1dec50ba429814bdf9df7951e257abd29d63de946d6cb13fb8001b417c5798

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.722-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff3206fbe755c21b0b8118df46667b3ad4ecd83ea81a533625c30844596e4568
MD5 f3cd6f1fa743d845edef5f2e35949121
BLAKE2b-256 e4a7948b4db82519a15e57ecda87afdeead6459898b6d1f9fdbf9f3748f5966f

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