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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.56-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.56-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.56-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 064f1ceff455af13b813d0d2971d977f016965331e219201bd247206d025ae43
MD5 d1a515a4a77b4348a78e4f0db0529d16
BLAKE2b-256 99b0134889a4094f1b6e2bd065c34b051cfbae64457e9846364a9677601e2ba6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e79a1e35533cfadbfa92e5d0da94cbedfd48a4520f18ce2c5c8fde9117fd1e2
MD5 174d678f10d56d13ea18d9c7e855579f
BLAKE2b-256 d515e0819a1017ec44525992c5c329a9746d15c2e07a0f32abce6b07284d297f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.56-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.56-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ca1927944b2067e3d4785afc78a1ffb6bcb6c5fef7a101135b3fb5504a59c8d
MD5 b6b28a0660f5707bce31d8c6affa1c54
BLAKE2b-256 7d7eb57b63fb77ed6fb88d0027b9cf9101fceae13a722905f3194f6ef308a379

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.56-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87b6cca63622762532d526afbc429fcbc7de125aae2177ff0599aa084bc1b6af
MD5 abea2faeaa267f1d76d36e977584baaf
BLAKE2b-256 337bd1a9d8aeced34e801972109a93d56f01a67b04c7e7861d6a8a966c131ba7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 25349dc2ab861cf25caa0e06fa503b7d27d9bcefa304ad2987cccfcd7f432bde
MD5 b0cc02948caed486c83142dfbdea0e96
BLAKE2b-256 681f7b3d7888cad6faf2804427284c4e2afb945967f91c758323c044a1c450c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 491996d75a721c4ee3c3fcc80260350d23c27c2ffd8107a3eb1b6335ab13f6dd
MD5 93c9d6c203b89735c38e9f0fdfe7cb79
BLAKE2b-256 e62ea104a1f67a76dec908bd0b3e0dab5dd2a94920acc06ef271aa2373c70e55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.56-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.56-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e607ce7799aa4a30ae1a5dbef33c41699dcb954601d9f45b1f1245558f646ce2
MD5 bee821de8320515c085e4ce1b2c9516c
BLAKE2b-256 90aa05856853fe3347c5001f37c634ab8ae36e5b5aadeb817b14dfa1c7fe1333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.56-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62148a8fec7632fd618e61199e5254cac51773f5f75bf4a3507ba9a62995ba6a
MD5 836cc63b1dc6512f58a509ac604ad82e
BLAKE2b-256 62e1039961912486410e9ddcdeecd8fc14fad3400f6a2ed4d202570e9ea2895d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ac75a53f6358aa88c03d10c89484a2546026e5c658b4bc5d10185d697348328
MD5 5af521e319d546f78c65f5a0a4efab80
BLAKE2b-256 5b2d3236ebdef539488ff5dd5bf8ed88da2981f58e42379e98eb4b5f15549edc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 113b14f5441c6395f578e1de0aee362b7f769e66e6a21cb18cc146d6dc7b698e
MD5 9b9ea7b90ff9ef5c5f159ecb5cbcbec6
BLAKE2b-256 bcf1dbe9770883e59f3ac3cc708cd0a2d0cc793ac5ac9cab20af966fe36c0e14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.56-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.56-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 229773d54e1b00a1baf04b67818fc033b3b6026be2cf8c0c4e0a886ba14fd088
MD5 46ac7121fd024ca87da0edef0f7092af
BLAKE2b-256 27a31f1b52642b2a8ec6518d0aa7c79c3b43ebd01392aee9d3305668fb83bed5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.56-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1204d29192288d9eef1c4db6c4d5913c7049711b4ea2d7ba7eb614f71e32fbcc
MD5 de834fecd2f7383575b5eb83aa3d1007
BLAKE2b-256 b00974edce430907899fbb04bc7b930c1eaf27ea36caa1d78b90140f1cab5d2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9224988f18ee86349f33d79c954c9775a81688c96e138d677e3063cdee85fe5c
MD5 0ae652fcfa4a1063195a2c94c87f71cd
BLAKE2b-256 2bdafbd9f49145d1826c5d6e914cbd5bcbda75c3b0076893e586df399a8942ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 11a89d1f7f1ace704cdb3de9d07f0c6da0816aefc05aaab8550b999842265654
MD5 b20bab15d410a7c25155ff55ceadcbf3
BLAKE2b-256 53402e76d1a316361d726735d744a5273d03744a107a5245daa81d1a12bdd576

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.56-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.56-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 044d1a41fa86b6af7abdbcf896724021fa88cfcff3e4fca9310096d33d2d200e
MD5 54c13ad8944d9a651ec722c5e15531d4
BLAKE2b-256 7e635d3841997877427ffacc64e7b8bf3a851888bbbbd9e16b5d7e9388aeb6a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.56-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b076d139a48ebfae621440d64d15618e5b367c3b53ff73bc2e78a620f0ce39b8
MD5 8056b173e2a6b8b9583ce4469c6fbce9
BLAKE2b-256 2d4d4128fdbe0b1902d464840d0c0a229edadcaf9b38ef02169f7dbadc553eb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0282282d3b15892f0417fefcca72ece71c95c2bb01789b3f5110c6fee637d924
MD5 954a4310d266c995051bef427c8ece28
BLAKE2b-256 c378ea7d76e2bb47027244661ab0d7e3bd5886225e9b1f1d3ef146ca8ff7f265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.56-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.56-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 28a6e8df95e5e89d53c3a1a6c4f87b13d9ced58d572ef2600fed71b570f418a9
MD5 a0bf7392cf0bfa9cf32a834f93e3f2ed
BLAKE2b-256 974303b19c0a10c747ab8d653eff00de0b6c80a8ca20164179a0c7f1a90ae81a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.56-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.56-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be547f5ed9e054c8a70e923de840832250d2f4139133c4fee78899a77332f8f5
MD5 3dcac39b38cd88fccf0b570e6a2a4374
BLAKE2b-256 b8c00dc299605a0463b28831f107492863855dcce175a9bed95cda2665e3548f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.56-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 117acd9a84316fd9455c192564b5b9acd8606ee8e0cf0addc5fa6eec1c39e5c6
MD5 1b5839e201f745d681e001db68692709
BLAKE2b-256 54df82891b61ab5a908f8aa88a0281a6f9cf6edd927a4d86bf55220e947cbc5b

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