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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.715-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.715-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.715-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.715-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c18255918f41355888d2eaa5eac8391bf1be89a2f752b602645bda187deb435
MD5 0ba57de0ecd79b76ea7d27c34fc8e5e8
BLAKE2b-256 f86e9ef6cb581a4dd0208c5b28c751ac22d78450dcfcb6327ba6cf1da3dcad96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7f59cd22ff0d3bdd338dc4512d803c08d76a129edddb46ee4a1d083a7a61459f
MD5 c75ef6723cd6470fa9929085418706eb
BLAKE2b-256 5b3db199f68d43f145d3f246eb4ada559f07c36d36b2c9d1f0dc735e29d1d29d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.715-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.715-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f0bc66360454a33b0daec3156086c90f51eaa33b671d5b1c00f02296dde0e4b
MD5 416c00dab0776f4415cafd2113c13360
BLAKE2b-256 0b052b4e61057f19e30506ca683bbc3629351fe17423c3bf0e4dc02da2543f79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba585ce7880bfc5cf5a54cd880dec0d4aee58fe8580037758ff8e898acdcadd7
MD5 33539dfd3ced587d0244bb3869680566
BLAKE2b-256 10106953b304e608a7303ebd22d04e9c4d57155fcaa816e23e2317c1495deea7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 053f734061e49e972068df91e6d85fc101be1a874f5c944af081edceff61fb92
MD5 1df9c95c0b3b51b89e71709cc8939cd5
BLAKE2b-256 3488068f2436b2a3a3c5b0ca55e94c716bedc5cea3c9d3e70a38781f1b8be028

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 75547157dabd7a887a661ea43f73562b0f57da810b441b133c06a8824e5f1b6b
MD5 ccb3ee6b7db733fcd519a07aed58eb18
BLAKE2b-256 48c19319ad93dbafe2104e008ce120c994086e2a25eaca403c144cf4d76112de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.715-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.715-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad9ae80e1a1f11e4837501480c63732c36491b039ac920b3cb2b36959b45abb8
MD5 171dc4ada4a443c0a62b1ddcc2802bba
BLAKE2b-256 353348b24e7f864094e7b3325f4684d292b3f4f15185bfcbadf3ada16f7ec5c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae976a1ea1398eb30f6010d4c481b55828d89f9908a9dc1d12041796caf80732
MD5 14faa2956d48a9843b56add91f3ee992
BLAKE2b-256 127bde4045aac5d2b9572d4a2f578deae5051a353d3ebbb8efad669c8e9f86d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5ca38e5f8d80997d29314294d0fbcecbfd773910e08351393bf045ac8ce9a7f0
MD5 4cee00a110844d66a7dd7d8ed0ce3971
BLAKE2b-256 63a9ad2f3d7164e77952e5efd24e719b8eb037558350e71d743a89569472353e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.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.3.715-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f25d24947e52c494b9667381c00f3426e57064d1e2a7b530b17156dd6286cc26
MD5 82bf324ed207f0281ea1303fefbb1fda
BLAKE2b-256 c46104ae7cff0c2cfcd0fdf0ade0f8011a2dd67e5d37a3b01034a427b6c4f538

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.715-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.715-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f7f0d33f60915249ba31eadfa98146daa377b1b4c353bbd9ed4e3d226003082
MD5 af0ddd8aa5d07ce21d66bb5abdad71a4
BLAKE2b-256 400be2abcc90336419facd642a8946b97862615f88395f49c5ecfa61d064704d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e79e90497f719d0ea3adde90debf2aa44c4d3181bf1d6a487b958e614e99e0b6
MD5 f3935b3538a9ae63f7deb47cca7a3398
BLAKE2b-256 72543ebfded4889279c88682beb9d6f7e08b6f17ed4101f97e52fdf0138f586d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2b517f3259881e3a39bf6b7d33c7c155e799d8ccf7a4f9d44616879b1ea99b3a
MD5 077eb55cb976a1a05a9b869ff076aa8c
BLAKE2b-256 e4841c328d89944c8cde8a7af0383d65640462f7e7c1fc5d428093a5f1b7c1dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9ea734fca872f8dfc38a1115b35da689a7f7312339f9e17caded85c99956cc1d
MD5 e7d0e036e06cc16981e57f7dd4732ad8
BLAKE2b-256 48fc99b314c1ac8e4c1f7cecaf8accb4f535be1fa72f59c67e5c1795c5d6a381

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.715-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.715-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffb443877f0f9675f639a2b5a7c14f16c9f29ec50680291d0f557fcfd47b9338
MD5 867229577d1981b6061488dd2e0945d6
BLAKE2b-256 5bfa61a09a9660f6d5f09c4088085fdbd47c1a8a983eb61690ad01c4b741e8db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 521a68302078dc5c7670984fd63ff19d6c2a590093f892ee86700a0aad095e43
MD5 94e37f42465d562494d9ca4a4bcd7135
BLAKE2b-256 404facd39d3c149605e4a96ed89d84c414ccd8201b50b83abbabb97156581470

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63583cb201f808913f68b98266b277e8421f266bf2fda5a586f0fba5842827ab
MD5 e74c9755607384b100016d34c4c127f7
BLAKE2b-256 f088faa73d5a168e6e3fe8ded5da24109fc5d6a043b56cdcc501e6cf0f249e6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.715-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.715-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 91c440a6157fece1fdfff4e7ed500cdeac9f698939fa10da1fa658333bd87d43
MD5 a8c77a6f53ffe535401bc7f7136b81f7
BLAKE2b-256 34c47fb634465e7198c449e34f74cb4f48ceebbb8b48b6c080ce0921f33eedb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.715-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.715-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4181efc3ab02502392e10918b9eaac0a0b8664714816b738d5ab7c5f2d4cc46c
MD5 bc6dcd6f17302e02463c9c1d63ba73ee
BLAKE2b-256 1841140d22b40260925ae8fa79618fb2ef440ec72364a1cbc0ea085ec4b565f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.715-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f33da98b93a32d10a17230da13e8ef660ce04a8eb113ffe825f35343a84a00cb
MD5 42653859754055bf7a689964c5df5a51
BLAKE2b-256 75ec1a26b0888f28c0b8288d66d51d8736b51ccfd9e6ee838413d5dac16ddb25

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