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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.370-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.370-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.370-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd4dd9acc0b29bc545276bd87cd131bd474476b16cce4a41e130572af77814a2
MD5 b26e72cdf14f6ae18b382ca0592c96c9
BLAKE2b-256 e035988505fca5d5f3f87d268643999eb200c2c891e10de1c24aa37524ff40ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e94adc3892a3b52a89ed13f101cfacc1af8babf860e85a148a26fa8aee07b8d0
MD5 8bdd25785362b6c7d538152157792714
BLAKE2b-256 87d054aa35a5bc34d91b6928432a820be783c880b22e8c2b746c4263b6b954b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.370-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.370-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3f95914532e721eed30d925771f17a28921cc57996aea734612bae6257b9f89
MD5 a65b46b3ec8a551c04740251bf2897b5
BLAKE2b-256 a57ffa7048d492a646c23a21514d52e81a3b32c15fecfe0177e815e30c34af78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb5c1ce185b32dcb9f3052ec59fbcd290eeaf7998e3dbd0b69e965be6288a0a8
MD5 09fc881095291523e94cbb6225b13463
BLAKE2b-256 68aadcadf8559968dd1f9c24115dad78b293bf593daadee6ac3dca6e73f86c52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e12a38beaae97e193db72f7dbc47555c02532e6ac4adf003e6205e0a06fa2325
MD5 0cb2537dfd197967e4e3767011ccc590
BLAKE2b-256 e83c5a4cba762e56555f443dc03eaabad720ee00abd8d4ca43e99961f78f00db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e1e783e2c6e5be44e9c830382f93577974fee65999581a0cd3fd3385d33279e6
MD5 27df75282bb7129ff6086160ef7e1bb7
BLAKE2b-256 05ce110c7af705511e86a17559bc9e64781c3848218624f68ac95a1b5de6037f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.370-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.370-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dbff99311b069b8ad007b834734c951c0b4cb2dd3d963aae5d1ad86c439cb990
MD5 0605936c393ca0237f3a5c6447131124
BLAKE2b-256 54fecd8a7ff171026027dfc8b575b92cbff1d0463c5a57fa87090dca005b0d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a944ca0fa81dbaad2dab455aec02d24e45a87f83e5637e1f0d894903de44ea35
MD5 4445b520dd3589f27b3f1e957bf403cc
BLAKE2b-256 cf1ff216ed35b1e9558a06009b8a88a62b3bb2b75289dbe614af78a3007e9d9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d10b903dfd835f6bebe7fe906944e61852e228932e45ffdbb596c3842f5a55bb
MD5 d2df0325e01b5f83d07b9562030ece03
BLAKE2b-256 cb27594093661a99dea9954d43d66af123460db3f298c558e428bbaacc3c807f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bf9e639d2c552d0d1c0d593523fa3b49d6fa7f2ae5b0c3d4c7e4cf7cb7b6d569
MD5 6650970c7c3c98654e0d3d21e670571a
BLAKE2b-256 af497fb20c27e95bb607121c7aac11b1bb22a34688e24962769ca8b7c8084ff6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.370-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.370-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be89c94fe13cc4e29cefdd148a0e0db6334a62b9668fd8514a99fadfaaceb3e5
MD5 8d2e3895776cf2134ad55d664130fff3
BLAKE2b-256 edefb2a557129af35ee4a07621db4b653daa8840feb291e9ff80fbb47f706802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddd245bdb7f082ce75ff7ab7455b42a8e8b6891440b205dc5cf004098f686539
MD5 149dc3afbf02784495d2f3118904cab5
BLAKE2b-256 1a30891ea4d925ee6206ae7930b934016eca0dfd321a2cb5c8febe5af4a37604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ba1ef8eaf3361cc6bf9fc7c2c496c6470891d71644a145831d376c00167dd70
MD5 91e87a11ca686dac834b8e71696f1065
BLAKE2b-256 108d5c59f5c92118e7a66bb97a4d1ae70870c002cb6a8cc780a409096a9d5158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a912c540d018f9162b551a5418fc8160fd911f12b949fd74d8f78916a080af29
MD5 cfd8c233443a539b631f2fd7d6998100
BLAKE2b-256 116761e62c677eb75693a04af1774980332706df7985dfe40224e6bf5a72124c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.370-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.370-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1706d48904f97df2e0cc79db907df48aa50eddedb6ea88a0bb8bce2c05cf4799
MD5 268c45cfc4f65f0436cac44b6751c4bc
BLAKE2b-256 922f4b25c4be6aeb122084bc606110c016d09fd032fdb1f8aaad3531378a7a2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1944145ef7670d1001dd653224e1cb38159e326dd3de39558a1d0f8521ac0fb4
MD5 115465f52db4c433bece396a5919ee39
BLAKE2b-256 40c0201f88085a2f4d63c73c82ceac265ef22ffb3d296d5223db3104b86efefc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a5ca421f31d26a21da78d663831f3a0a6b8410b8878a6cf68252f493a5374a7d
MD5 fb6463ec7f874c4cc9c35364c00a5298
BLAKE2b-256 4fb86bf7148522322c7e77048c00d1f7e2a3afc70aa451b3834d1d3013e56310

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.370-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.370-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7785f3c9e74621b938b0eb1149deef9a86c5d947e9d31c14eb4c09eb82d12d66
MD5 7b859ce6a6ff00f0729072cbbc21a6b0
BLAKE2b-256 3fffcb8d42ed8b08bdd1095cba007b881b414adb5eda74c6b9bcac68970b49aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.370-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.370-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93f566dc4bf6ea8d594c6e0809c7403d593fb902bf2b1dfa9fd1eaea312c8a97
MD5 2ebedebf1fc548a197d00425285b6149
BLAKE2b-256 f120cf031f0096dd09ce84a8385c18a8fb4071213bddb8f9175ccdaaa04693b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.370-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4efd989f8c5e14e87b27b8efba0a585f03d82f91a257ada2627f9187ff3d339
MD5 e610596b15427522a7dc162276c40918
BLAKE2b-256 4289cb580dd0044033ae07f129e28f2fb7545c372800b31b8e0e2aedd1420f8e

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