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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.940-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.940-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.940-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35962f22cbf1a9fad5462af6900da01e263ec01e4a024ca7e4b062eba50e6381
MD5 672125663dfacbb8f1ede701b12bfb7a
BLAKE2b-256 8ed27f1e701e6d9a1c7700d6b2a1d8d0d38d9093d3c386b8fb0700fe3d46277b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e692c3de4b772c982695940f1f9f0b2076ec7c806f556ed7f06722bbfc5608fe
MD5 c5324292e815cf76aa83effd510d5052
BLAKE2b-256 e352c0eec2e9d4150535d00de610d7c1ec76a03d51ffdcb38583d35abd4ed5c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.940-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.940-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9964eb598462b370e6ad117ab52553c64f02aa60ac3fb4c55207b4e74fbaff69
MD5 bba1c8107e1183f667cd871969933f5f
BLAKE2b-256 5604797848783a648dec68bc6766de5636ba2cb949bfb7d8c7f086de082f4e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 686ba481dc135f51b5a413da96665d745b8fe059118456cdea901494291bc2b3
MD5 a564dab8ef951de797c765708ae1915f
BLAKE2b-256 e22ee5ea1e8d81eaa0965813cf386b368aa54db7d190f60e5de039cb1bf832e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b66b4bef40a942eee19efe0e0ce0beb1c620f38f93d50cf926e656c396a1f68
MD5 5301fef25fd58fbb62b5168f9935f795
BLAKE2b-256 65c7be2e7cddcb2ec13abf23639569c4199cbe887fcd0659963de32e98dfb5e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fb1da81eb67cac8c0402c74250cd682b0138dd756fc1ea9590e5882e1a6f1c91
MD5 ed14701b37c26c9e39440e1472ceac7e
BLAKE2b-256 56346b5d05f03383d71a2bb9baf47bb0b87fe6f89c3af1b3f69011f8ba4cf7d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.940-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.940-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0500ee9898cb12bee9690bd54f49e770af05c10e9c02fecd3e8c38f00b197eb4
MD5 ce2c88e3bddb7d727f1d6b4f64515767
BLAKE2b-256 f6d4b1eaa8ede7374bd3386f7e2a93303ee23be60777eb5fc949ab596dccf973

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feded6aa0e50340f1196832e3c5d975f39f96448ac9e779f300164133ce95d3f
MD5 7a25a4672b2de032767998aae0c4f065
BLAKE2b-256 b1cc2d8458fbba7ffe9fdc9f5515b1168c64d53cf84eaee8923d863daf9a50d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 04063e2f401c1931d8771ea6e14a2caaf5d1fa9cf45f159cee32863aa45a8ba4
MD5 d2e6de706a73b118bddbe034af9c726e
BLAKE2b-256 7b3e91182b7cc0d600adaf1610a0c7a6e72ee719eadd36b7483e19a5d7249258

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ecf89641cdb741e1e61f131265c1f3c816e64cc986b33ad1fca7f5fd46a7c0f4
MD5 a8bb8c88f089720dd6fe28bb5c9f5457
BLAKE2b-256 b4fa4edca3e5025e004d331066cedad83da2a8a4c80bbfac40ae4ea2a6ffcd2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.940-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.940-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf7ac504ed018f0616a3d0d1ca668be1e1dd96d1a4e2e094a5b84604e45a3033
MD5 d9f111bd75bf74fbc3b47e60feaddf2c
BLAKE2b-256 13a5c18624d80d9de3e017c03ad26402226402d235bfb3cdd25587d0befcfe71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 120149fdaad302ecd23d20f6bfd572803163190f0feeb9ad00a011a25ab46cb5
MD5 7084111612559607e5836db85b1f2d1c
BLAKE2b-256 5c0330eab9dd48898e6f6990c33d1b65ab76d0e2e90f8974a9dd10012f19d233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 92733bdea5d27b3bffb390e6b82050971459ffe3e4ed1b11d9cdce723591ff52
MD5 14b8cab0686e56419cb215a5315ea1f6
BLAKE2b-256 deb994b611589bfcc5ab770301ebbe428175c90f4f5ec54c8cb1cdd93ba2a226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cf0ec631e0837dd569ddd89595c62b62793ae982894a41f9537d346aa8def96a
MD5 55bb5e343c405d5c47b6d31dba6b64b7
BLAKE2b-256 1f80416fa3a54160f05e358a07364cf61b0665352462926ee00380258be44b37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.940-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.940-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 280b0a479dfbfe31653b99cd37113efacca1a9d55f0fd32b5029dc5f059b5b68
MD5 f8078dbf0ffe31810bcfc54da8164708
BLAKE2b-256 b2807b951c9f7ba0c742e62fe32d17ff60fcabbf7e898f671bb03ec78123b1ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94341474aa9b91ecbc4f8f020d4b16bd700ab3f5bb828ab19f4d2ad9a97a169a
MD5 ea6094274f0d4f27a9b464b96e64d1db
BLAKE2b-256 e22fd234afa20004a9a63cdfa3b7aa3e29239a2219750969bc8f318eb060a63e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bb36d4d776ebed1ea948cdb098a518b43dcfd41b432978de7f4b62a3919b0696
MD5 1456206336e0872fc9d65917d02ead84
BLAKE2b-256 d51f79c08de87e4ec02609010f13960da631fe1ce8bef637388d7729f45fb168

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.940-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.940-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4acf02659c3fd05f7b25a6ab62284cc98c93dad44f4caaa8c48232091e689829
MD5 ce099ae5f86ac31c7cc3cc0bb7b61be2
BLAKE2b-256 9c66f24c7f8c9fd8eb339537f52bb12ef927557ad8796ca50262f0a49f36d34a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.940-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.940-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 879ab5a73bdaf1d6a9d45342c22cf20328b882a567b80110a5d526bbaae1e624
MD5 819a010c7fafe21962e66183d0197ec3
BLAKE2b-256 33b25c5bd8903defe81eb5a21811ddb4639095522fb9e7dd9ade49562c80d4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.940-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9358d69ed56d81e5d9627144c18df44e5947f5ef2af544961f09ba9493ac621d
MD5 61d66792d4c0cb0508bc9f6b87361937
BLAKE2b-256 780a83972977329007197c3da5b36a47961c9b69dd3a6c5e1518b1ae5265ffd6

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