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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.938-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.938-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.938-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df03c70576369fb05dc2c20e2d9d2a8522867855a8eee98b4e18993d1b2e6e7e
MD5 745d3219a47024af98eeac2374a66915
BLAKE2b-256 e2bc3c8cd96192ac8504a522b1acd2774f95c32e6fef22be507b5d6a30377895

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f8554fef329c86ef8bcb010bf3f71e088ece9a14a35a44c512f81a4ef20ae24a
MD5 0d55c38723e302a38e10dc731e058030
BLAKE2b-256 e0a6b1765148f5279e9d8a8bc11ba09eaa9cb87a844a8ade116c365a3255e0f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.938-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.938-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 731040e467c99b9d6998a17418fed627f988eea12aed823429abcb9b39b766ec
MD5 9c5edc2818314834547ff1a941f6f396
BLAKE2b-256 f00bd79d0ac92a836b07bf4cf1eff9c58ada9e46b4dc0f7f3a590b7e824ae429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d873c649a678993747070551a67fee6c2954bef9657ab29d1457d3755b842f8
MD5 ffd5e7f716fe9246cd54ee04ad7520c1
BLAKE2b-256 5a5ce817221d7ab020b4460fb9fee6865a2af6ec05cf56cb16b865f09698bad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4f2dcbc71bb490dc407d8ea2f63b05ebac1dd41ee87f91c2205534b92dc5389
MD5 39dac2a191fbb1736921890d1ceb3ed7
BLAKE2b-256 4104255fd654b95188bde8422070e860e16c8eb8aca8c44d374d5def95093536

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1d46618b55a38a28222b7a7583a38a5551cfb164392820233dbfaf869f0a8d1a
MD5 3fb12c160991c726c955b0b830ff5ba9
BLAKE2b-256 ff978578e3239dfd406830e74809e06313369b2346268cd67e82559bb0234a2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.938-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.938-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6df8402f8e7ae70d3a55d2d92471bbe2bb180c7b2518b256173ee5c215fc667
MD5 ac14c1ea204de53514123d891068e8ad
BLAKE2b-256 acd4a4971ae784937a697ba97b36ad6c39b8c54e6caac92f6cf0b7eeb284287e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eb2a40c5722d90b9c9a4dfd1d94e43aa7794e1899b5019d6427caebb07c8ffc
MD5 550a798bd67c42f611a722d170571311
BLAKE2b-256 225427ccc24a0f6a02a304c79d3f461a9b5d65ab9ce029ddaa037dd5f4a8301c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f449a8ff00c7ad2f482eae43bf3d9a4d1d4f8f3586205d609314121b1571f369
MD5 90fbfbcde66eaefa577a9aa03fd073c7
BLAKE2b-256 6dae4267c1436ffdd8bfd3dd68e367b7c79b8e2deb4bad97f09f5c280ee31e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cc23e69089fe75d734f43975b05cec87c20d934e653b705007709a33e4a1d8e3
MD5 4bb9aeecea4d23e1b80f4a7515dad58a
BLAKE2b-256 83e834cc8ecd9b304f8f9f699b0cb6dcc055a909b8489cc882540d4567031431

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.938-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.938-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b8feebb2c3065abf378abac9e15dc67a632d401451da4d7a9391c650a06406e
MD5 b2a14d1f252a8b5972702ca211a9be99
BLAKE2b-256 4a24108c744994f5b9bae2a786f747712f7882fc1a092c904c218b57a0dc3c72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a01d9d2475decf96a2f2c3177e10470178566ccc88e46e7bb0e0286b06ee9a4a
MD5 1cc672c4764e43957d21753e3bb45da1
BLAKE2b-256 043e3a8cd041e786ff3d5776ae98e78e7681bb9921cfcb1c73028be5fb44b042

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2227252da3afc761284844af4a92951e402ab69e61715b71ff1971467004183d
MD5 80f2a50c8c323b897f6dbef2c69634b2
BLAKE2b-256 b472585193eb9ea27215315f9697967ea7c4067e39f52caee80d1d5a5262f3dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6b3638d8e23925ab2bcd403d6cfcd8f016ac221c6c6caa1c426ef5728e6391bd
MD5 431ca40c2e5e32fabadeb5128c1e6e6c
BLAKE2b-256 ef583dd2db6356b4f98f1e4929993bb85ce8c1d11ca799c252fcc72293281665

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.938-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.938-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91ecca28095cf0aaad1000faa579a5ccbf127a0f91ed8ba0ec2b35f54ad28f95
MD5 78581316504495635beb48b27b4bf172
BLAKE2b-256 fd1f1085d43d997b6d1cbe51f9a346a9591ce6c031a87c1e4439b179173b7f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5d40f935d5c66f85dfb7fddda800d4773a9c930ef21313fe123b996e79a428e
MD5 2f61c7a934dc6355c9c95094a969e937
BLAKE2b-256 268af920bd32f6b988793dc0e32cb690a640cc69630842c81a58fe16627e1a2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f66a330298ee61d7595dfa7a426e36a8e975b054e5cc5a0e8a346ddd6eef84e
MD5 415645c3f632aa6dd365712c39146f24
BLAKE2b-256 ee576786f70b6a817cff6f0fa240e1a5663625ca006d49af9cdc472d502623bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.938-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.938-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2c1d7e1966d817f1da2229a2d117216f4f91cf370d851da588b1d6b761662d46
MD5 0f0d66a96138d06649027afee69ea657
BLAKE2b-256 737aa763295c5a25759084584b7eb06c59c41865598692ac4a52c431402c1ea8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.938-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.938-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8010b6b4f42cfbe279e9a5c2e5a369af17ca0a65751b8b8713856359ff5f1136
MD5 46d41914ac60e71c7b5b805157a2ddfd
BLAKE2b-256 3b302e601a9cac960325e104e8b6ac9918fb504d43424193ec1abe9af69fcf9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.938-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f914b7e2fb95a952edf032383793a4ef3ce45a6ef6fe73ccbd1146be4f4b45af
MD5 6c29ddabb8d2ba563aecd792a71d438c
BLAKE2b-256 a4606f6feaf262e41f08f0febccca4378eaaac5a680581c0a161ec61e84079d3

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