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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.62-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.62-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.62-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.62-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.62-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.62-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.62-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 551354990b79537d0ebf17ada9d9ffd30dd4d654002adca438bba1dbe1dca008
MD5 5f940bbaa947787748d17d3ca2c1e703
BLAKE2b-256 abf2ef3749b05c24cde90c9e8af2f54032fd77ef540fb0d2aae3bd058bacee42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3f2d1428365f681cb09c200458565818daa4a209a8aecbfcd6a898a685470d54
MD5 4a524affb4b6fd573c0e4acbc7379025
BLAKE2b-256 309850011deeb0631c4c50a1f1d12a866bf81f18b54c0fa9feddeadfcd5a6988

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.62-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.62-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffecf75b0aaef0e5eb0bd759e6f100b3fdfd7626762670b3e0d3b0f1b81dfa07
MD5 d58a93cb87c86f0b8da3c6041cf33c83
BLAKE2b-256 af6129de359566b02fb15dbd584c53a254bdf50843db58ca5eabecd7c479a555

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.62-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e63f800064e6820411ef243d4c60c4142e810e33298d7cd128fe03d149231ae0
MD5 58e0a9c41f5dc64f165e9b4240967259
BLAKE2b-256 8bfb4b7100efa998a642d1ba562d815622ef4fa3b97bb84c3bf4a938f5f2dc65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.62-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 72c62a4de37267b7f2d8f47db838cf061314db05e940d36a7d88113c46db656f
MD5 f85a23ccf6cbb8bd37bf8eba5707fd7e
BLAKE2b-256 2195d3febce8e2bd1bce0dc6909de212d1426d91e2d3fdff45847d10b189b762

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b4d7d6e757b00e7368e7830336d4daa02c5ea73c1ffd820225a1c34dd7e8dbcb
MD5 abd28ea22041506465dc7d595cebdea7
BLAKE2b-256 d5ac026d4b9beede4b31c5b8eae2be96fe2dcb9d8eb2d64e60ac9aed375cb1c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.62-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.62-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 362c52d9d55914d7e91e3aee1a4fb65d92b78df1f13618136ed8c8192a9908e1
MD5 eb8b5abf4cb903bd9cc8d5ea34bcc32c
BLAKE2b-256 60535bf8af42d9903f1c7e55f0f9ad78da330415011e3d387ae69184b56b6a89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.62-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 243a8508f555e77ff3b6c9e878474cdce5d8d14950e4e06f2151ea2fb168c259
MD5 a9eebf7469c3ab88e60e3ad2f173cb5e
BLAKE2b-256 a22c0cfd3b560eb2ee69534c1f0c6e53f0e3f2255f70fe60228bbce6ddb16343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.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.3.62-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e4085db50904b661faf68710fd120f34f44f8273d669fbf75a0296c0cc079e6e
MD5 6ce8d0b4d8e349883b9e61a14df33e56
BLAKE2b-256 46ee5c410f1e504e8660c917030cb96fbe3a9a49b350dda45685dd23c3749578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e7cc9dbb753e4fe8101818e58e826856e711a58b0b956b265f67cd01bc503c7a
MD5 51c2719d3892484d5e1b999b08584ade
BLAKE2b-256 10dd064079f77f49c4421cd3d970c4e4263b7dfeaf72f5ce20d2ae10d7a9c0e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.62-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.62-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b82473faaa0517b88b2d33850feb266fb0c3b34dafdfec315ea1b40bf8c3db9
MD5 940b251ff6cb18932e099e336ca6b2d3
BLAKE2b-256 448f4f81681c1c145f4b6893c49cc4b7be4b5b0c6f90496af3d51b1adba0c60c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.62-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e32b3680c95e63dda00f17dc639e0a7b93084829e757d497fa69f93f89e422b
MD5 3f717ff0cb38288ce5f6522b61ec47c1
BLAKE2b-256 e5a9b761b462ffb4deef5337c26799ee73efeb4efd8128ae36c479871555b3c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 21f00efbbe8cbdab1d1a50d07829c123622092815226b474a606f78ac6800c7f
MD5 109b55404f3afb2dd531c2e7fd5c9538
BLAKE2b-256 b2348416834bdd206cf0ca272f96bf8827dbaef19c97dd96ee1cd3c405b809fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5cd08f44363c9ca352148bfd0c4685eed3f27367776f9f2fa97990605b9823d5
MD5 84e266f57e16590c4d29b10b2a4c386c
BLAKE2b-256 13552b71b52d3f06e5f38b0bdac953a01cc54aadf99a8124729dd872219bd19b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.62-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.62-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc546690a5a01a6d59c6efaaf4d48fbabcbfeb4983375cc7055fc976151d12b6
MD5 c1d980acc53a0b93601e008121609e77
BLAKE2b-256 9cec04324cff967bd58b7f0960c71024aeb0878b9248c61c81ee6c281c923bd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.62-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 538422faacb20792b2335bd93bc096b28b366119d4bc49b1bce81a83fe30ebdf
MD5 d81780d4a4a94ab1d758d61aa8cb61d6
BLAKE2b-256 232aa6d13a8b2dc5a021c7560d3242ac11eef86426c168e9fc022f39cb0c3fdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 99f8362f3eedf87a3ff5a277dc267559f249fe9b1fbbbf1e14f83a09647f0581
MD5 0fe617280d6287b59eed49ec8f38687b
BLAKE2b-256 b9dd63dfb9bdc9fb14a403662eaf15117cf1750e0c4e6d21efbffb6f8af88f90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.62-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.62-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d3656c9b145d982e666b42394511fccf78a26bce988de6e37deff52629292f8e
MD5 0bf0d161f59df05c694e1820422fb1d3
BLAKE2b-256 64dc4b25a69d544d8c9ff884591fa79d4becde2585b12d0e87f97faa51e3b3cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.62-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.62-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67a281c6bb31e7599f34046ec158f638087d54fa2b478f1c19a77e0557edbc17
MD5 70224259e8d137563cc8b8af600b1059
BLAKE2b-256 84dba843ec94bbe74ee58f11886cf12de16c35f32624f8d9b0f574fc16642713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.62-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19dc1c1e44a7d0ee19c93fe88d67425f301257ea54507f09400c828038bdeeb8
MD5 66ff49e990a8ecdca1d2ffe3da5c665b
BLAKE2b-256 1395fbc5c002112251fcecaaec0d81e8ad0d8155d5c1c20f1bf64776823345f8

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