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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.247-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.247-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.247-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c224cf60fad4f0340719cf4615b0804edc0a6aba89d1d1573993c019a35c016
MD5 82357068025cf71b7a11470b6e878db2
BLAKE2b-256 5f8d504584bf64b532aa1b8f9976ebd7ccd71bb881f1722ab92fb1e309053dd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9a9e7dbac136d90bf7496c42cb91f6b41a6bf69ffb276da66309715386501090
MD5 387ae7f915b339282eae75ecd5307566
BLAKE2b-256 54b4163ab8b12fb79b475d44bb282aa830d0ab1d78c64933291d8aaae2e5e807

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.247-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.247-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 834123d995fdbaf28ef5eb1b6557a441fbe3a814fbafae9ce46e3186873211f6
MD5 c2b83f4d9edb9958db2f03a74b74e7d2
BLAKE2b-256 ac73466702c9c7d6b231e0ee02acd91bb6bda9d323dc9eb92ccc290d16d8f6ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd1d22792ee3212f0cb0677bb4edb8c14e8f3a152d609212d026837d77db9df1
MD5 cac9cefa2751753753c9831f3bc83131
BLAKE2b-256 e8a2247f930190a68aa6ff5841741b9eebe973d0f01fa1bb8453b4bce5eaf042

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 04dff7ca3e53dc5cbfad30ffa2cd9fbab976339ecf9b9ede9ed1e232f2897c90
MD5 2f32c7d771a75ff8b490ef49e83ea4de
BLAKE2b-256 5a3a57862c1ad64a8c9d499426e7788a0a66139d8b98fd6329fe2fb228580757

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2083aa519c6b58c3994b874b118f4202b809af9873ed6749abe8ab94d6436ccc
MD5 ed0f7bc9ce6c056c62b6e8aa04c4cac6
BLAKE2b-256 39df5c277ca48d13a62f674d6e0e97af58e15a4b8eaa4319acc47a7ba1a16829

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.247-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.247-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 601821fffcb0e1bcb9a3420520560d49db3cc94ce46e2c4b39584decf544de13
MD5 9ca371e0c75d10259ffa5935a034f3ef
BLAKE2b-256 7e6290f3082a23cb52b78a295b57a82b370a96561207ec0857e044680d1d3e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa8ce7c42c40ea4764b5b3fd9ebc52ba3024e13fa9e9f2ef7f32955ff21a0523
MD5 28ea8141c9fd42444314c10a4c7283f9
BLAKE2b-256 451dbd858359366108ced4f841108a809dce7008e8a84ffc272c702964805230

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 98606ff33e0829dd48d8e26a3fd2d37c7f059041d10b24619ece39502bac763f
MD5 992b14c41540b358d7940e1b9ca95a25
BLAKE2b-256 855b7773125f03c917ef69bbf190ed911ed9600c63bda4615a2c7a4e3deadb9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8b3e4245a5d7500ab8f8a0eb8608ab03eb5652de89efba50efeea17cf20eb749
MD5 90dbc6ba5febb63a1d4211fff0e1eac8
BLAKE2b-256 54e1bffce4de9a67bf155e0d8283cd894cc90e5d7d833be08e5622da51c80a15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.247-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.247-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 118ccc3b8b8b04f3e800f7811baf5abb97fba9f1bd26cb470892a3eb1104fd29
MD5 c2e129841f369d49461e1c1b916f71de
BLAKE2b-256 42d281abed6b6f94ee5a25c751f63c70a01d7d74341410fdf1a272d389f20130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b04f179ee194e15bc86f42ad9374783d68d8c6bbecef7ae5d5475948cc5cc5a
MD5 750bea8cf625e5dc3b3304892281c24f
BLAKE2b-256 370fa55e93fc1c8a7dd5888bc6897c198f11f3cbb557ff15777ec52d56915ca3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8dd85b3d90332da330d66ecb97ae1947d914258775e05644caaf924259f1da23
MD5 5d3291095c7614073e79cbc48dda31ee
BLAKE2b-256 ea64ded6fda2ecb85e08e743a57ba005c71cd839a48cee0bcc2eb87f4e226638

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2660d9d024c031675f67d153b9d28854b747858759a30222a37e5d660b432d08
MD5 9db587ffdd51f9712b733148712396ad
BLAKE2b-256 3f27e1d37012983f6b062db19db1f9e990a750dd4723801acc664a7e5e4465e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.247-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.247-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f30782318fdb3b37f4c1e0e5bdf8559e01f1921ce5e5a8de9e8efa47898961ee
MD5 dc7d363d77c95ffaa1482c9bff23b862
BLAKE2b-256 d17b968a305e7b8aa2c3c9a7e7aaf6f8e74836c341c8b8129f17fdb1724246b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7c03231f4caa2db0a4d543de62b91bca436e3841fbb459aacf138def9aa0e3d
MD5 417e5c167999d6aca63177c8dcb7bda8
BLAKE2b-256 e4dfc9264619cf0f4166e85d9ce8fc11c83b0fad809e62e5a4e13bb957e47d20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9aa0d99fee147ab5d76aa57cba8e9e2826a530e268aefb36b60d1098216cf771
MD5 b8777b5980a9b524191067cabe55bc84
BLAKE2b-256 66ac90c7a69cff39c60aaf854b2769fa4248a51771ae027928147193f3601f4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.247-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.247-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6a2a1645ee2a49267b9e649cafcb11c73616d898bba9f9420b38e2723279ee7b
MD5 bfe49301e5ad26ca39ebe612391867fa
BLAKE2b-256 a9e235cb97a91f15cdced580fe549e8fd4faf2b3e1c6e45db9fe681a090b2833

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.247-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.247-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98bc9179a9a109505936a27132f2535ce08162411bb5d7c4a189df25a17bfb6a
MD5 a35ac1e254af8af22b402785e40e1dc8
BLAKE2b-256 36f1b06e03d8a7a156814d6380a78c95963804d8400681c5fc700989b58b73c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.247-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 494b859c4fd126b0f4a74aa8aaac2f105046dd0f4e85b300cd846b909981ea57
MD5 5e21b7eb774ebffffad3ce6fe2252522
BLAKE2b-256 58397c77063451b703072eed544ecf30a354a96aa9c3424d3d5553a0b6ff414f

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