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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.574-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.574-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.574-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0dea69abfe4c7ab07c07cc583761166b0fb9b17d7ef84508abdd7ce8a64b745
MD5 e6130f8c9ad96c6cae0ed413c4448f74
BLAKE2b-256 97ab77bbc36ac84ac62d4c70a682b5b87174e861cca4d00d937cfca2d9156e27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bf8d05469b959cf5205739c1507c2923fe8bcca39f66b40818eeb32a6d5cd654
MD5 4eb6e9f7aafd7ce066ab6dbba3abffdf
BLAKE2b-256 31751fa29015be126d215f6b0e0d2dc3b8e3da9717fc03e486f27d61fbe7c7b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.574-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.574-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab8be47c6d8836c6bc67a28efa1c355f61049d58535be5455fbf5dc1914ccfd8
MD5 66bacf14f10ac61eb3ac057092924253
BLAKE2b-256 025e19bec0b2e7f9f256dc73b1b69955e3980b1a7a5af04760cdcc6b814ee5f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8eb265c2030243f49f9c3fc62133de75c1c4065b520682ae44014a3b8c316fa5
MD5 7ddd6d8c1a63503a9c384ef1ce786410
BLAKE2b-256 b1dcb88eb4a3c384f3910114c401fd3b9ff880ca3b8f89a8b032b93bf44768ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fcbbabb4644775fcdab7ca1d879a6ad51903afd993ab5d7e1e225057062aed21
MD5 f40dd0c10ce65145c7378cd265a0bef4
BLAKE2b-256 311f061df0ce43365619f7c0ee8dd0d61bd5d402ffa3c8a36451205c4fef872f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b284e1840fb22ca191a0c19275d21fe9a8eaeeebb9d4d63287906f4a622ceecd
MD5 331148dca8fa64075daca603a2ec8f56
BLAKE2b-256 f4a5bb67a2b2dd4327f01169562e580689efae862702f87d493817ec830dc9eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.574-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.574-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7affc64bc0be9cef8e0906d880ded4d12265e35aef4610f0e67f9c48c95d3a27
MD5 c062473676e322f9399b00219e4ed028
BLAKE2b-256 b5c979d90bb763a9b04e3d714fcd6154dd08e07d59e97fe22cb8ac1885201fe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63cee7bc7fcb5351c4ef0fb2cd4775cd026337200711f9ed7fb04fba8b77838e
MD5 157cc87194d4ff48829b52ac7e373e6b
BLAKE2b-256 b75e304a18fbc5d54de1321cdda7fe025e2230fc8cbf249ba7956d97f70283d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 005c7e4c967c9af48fb365ed37f2b4f1ce87201766f27ba0db36b9455ace66f2
MD5 ade0f1f815c1970bfa42b80a0c8e26dd
BLAKE2b-256 ea2b0b7fd5ea68bc958437082059d417e693ee945a9f5ce6217344e7c82393fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0b59c6602242b1e7287d479ad9bc30d7b69c9fe406747acd759fc8522382e33b
MD5 e0bb94463e012a111728298da9190e67
BLAKE2b-256 df8c92bbd9cd981ccf0f66541b29ee1119c7d6780923cd8ec04e67231be58f18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.574-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.574-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ddc288c997f28672c056528e0420cf13c0db2103fc2e026b033c18aa590391a
MD5 87c63543fa034ae3c301bf92549d13d1
BLAKE2b-256 5318536d52876b8875de85e2257ce39af9cf4304e318ab8bebaf58b7384ec767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebf930bc47dcacf3172120066bb3aafbc6a15562c0bc84e4cfd808dd4efbfe06
MD5 f8615ebd61eb5c998e45142f4af71a1d
BLAKE2b-256 280ccb2427509144ead2b8f3288f9ce4387218755c0417ac0193d3529d6135f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 10433c83cb1ec7e7c01ad0887a16977ef37d45cf50c65c196c551495caabd541
MD5 e1b64443e50d87e2d23d7b7746ab0c74
BLAKE2b-256 9b975aec5acd6a8985c83c03069638d1354be8e7b71184294aa5d6c215b5b3ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b4f3a44aa917ba57253c72e1baf4478f6c0223b6a1d3871c3b3e5d9b3fa3edca
MD5 92a39eb20f79861e13d54964e7627f7a
BLAKE2b-256 0c25fdd96c7c0c28468c4fe46bb4ac6d6d71b22deed21e8a1456222eb7595c96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.574-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.574-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4661d3fee755485af37dc74fcdc808c164b28d6635487036e6b6a187e468f4d8
MD5 ad943475e69b7de2a244439436f97d75
BLAKE2b-256 dcfbbd4af4821e4151f3487550f5ed0e50a4aed94fd8ba717dcfddc6aa5ec556

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b11384ff04325ce937c902dc8c4e199687a50c2613525433cdcf46e67a230503
MD5 8fadc3f3e0509c40802d8798dbc0ffe2
BLAKE2b-256 e47f6eb863e91156d9395bced616908fd5c853a133c58c77d67bfd1c0a652797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6670569ac1f490db78518227d5df119df13decd534894728b9c8b70464b42e75
MD5 efb926a5ba954c77a9159f6deca7048a
BLAKE2b-256 2da40cff4bd148f200e8bba14cb4a9474c7fb903b4bd94c7ef41329dc1356fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.574-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.574-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 720e88fa1c60efdebc021838e6b98c70410a6a549397a7343876354fa1cfb1e0
MD5 fee2eb5ebeac0181d32cac59794308be
BLAKE2b-256 f778e85bfb8f842800cfc559403470bf4762b3fd1efef722628a5ac12b068bc0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.574-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.574-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 930a0b4507495c7b15cecd987f155c51a35b2f806e915a1a67cbff76a60eeb95
MD5 25496bb74f763198414b28a1b978ae65
BLAKE2b-256 9301d749d7732a63d3ef6acae5b9934387991fae877edc26251db95ca545f4ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.574-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 debf39e5bf6f6a3ed2fb244d25d1227b1c3111fb0add66782bfe5ed6c17647f1
MD5 357eac24c4345c32931740605ae45cac
BLAKE2b-256 1e3ac72d1e48a14896553b1a16383f8ba58b092d6b300de639b561011f7ee41a

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