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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.376-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.376-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.376-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d7895ace7e060fefc6b83529d8dc3aa5d5e7ae648bc04bdd413be1d61bc32f3
MD5 52487d4fda130c77063fc6327b40eec1
BLAKE2b-256 f8a3ab57e289207c430de08189a4e122ff045fc6cce967ab7d674181b7cd95e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ba78b4d25ff66420a042fa66f103bcac0db50042635f0b91dd9e5fb28dd26f1a
MD5 3be9fb60697859c9692adc8e1f6b27ec
BLAKE2b-256 4424dacd34b00370e493d0da42e45a17505e8c84a94f967f46722bf4c3dca86b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.376-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.376-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9506c24237b749ad7deb7b038fdccca29c8cacfe0ff6544679e8246b23a3a72
MD5 c88e35cfb45b63632e63c0a5dee25787
BLAKE2b-256 7583b7252eabc3659670b2594e43d36d8fd3dccd0d3d94b406eac8cd490fcc4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2459545d4f4c4da0ae0644a4a8fe751d2a6a9069e2559bf9d8b320c70cbb8c34
MD5 cf71f6a22a1e0d35fffd7dc7483d1ae5
BLAKE2b-256 ac174ac8fb29286192dbddfd98d189bd9dc9ed0e6aba1a5f4999c810834b2b37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f9e15c4878a5820e6545a8328789e98339bf8cf6da10f2c1118c249d1b28d914
MD5 caa787f38c4187875a3c5b48004e112b
BLAKE2b-256 44247d601751e22defd3e1dbdc7176dc10e80112212535568e472bc66cafc45b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4dd8c72f7b58a4a4827cd227e17e8f2c2ce64bc7c6429807feff64c279d01daf
MD5 08ace210d75921eea37c9d0c4f9b312e
BLAKE2b-256 770d6602a325815ad9ba573a35c2755a814728fdd8b650ca3913b9361b57fd04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.376-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.376-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67ce883befea7a2257d4dee05757975b57e34594632b090040dac547db399dce
MD5 4b01af858366079f2e709eb2c9582d2e
BLAKE2b-256 6d158ce8dbea20bbbf2af76be49de4f7b49bbcb313eb40643e86f2bf70e5cf85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 112eecec41caf363b1421a50a3bebbb452aa4555e8a202141123898d284cfbb7
MD5 cd5d09295a8bed5f56af3260efecbe38
BLAKE2b-256 4308771bdee22b016ad79cab6d24f7444019d9a4af5941030077053145adaeec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aba1c35985f957c1ca99d758a814be33a8d3c3b3ea0f4237d509a01692b67935
MD5 ff9b23276a3779350d14221d66e73cec
BLAKE2b-256 b4781a9deb3b4c3ba23d6905e7e4c7465cc0a5e1b80d7a6979a28bd02797c76d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 067f76ead03f0a87e4fd70cfde8c6a61c64442b9d0d7adeb5f4f59794bc7ab35
MD5 9ad8c5084eef1ec04563da1dc28fb153
BLAKE2b-256 42d18cd4fec67a7e4542b03972b06621a548623f6c66878ae7bbb5b60915307c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.376-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.376-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6bb2b434e57c1e3b893a888db59ac59a6c12e065765acfbdeb0e053f804d1f1
MD5 a30bd42603227ff09521dfc7cfc1d22d
BLAKE2b-256 e55a13d654e297b4777db61a65840d39cbd4081176ba1b343ea86efd3c7c6078

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51e59e1ceb2999e8d1de19728948fa62e51a73896eaec7e916ac75fb91f935bf
MD5 e9fbc84091c36db0bd9998262126aa64
BLAKE2b-256 b31e89da2dec0471ea4e3da6541844fc5e1ad27a048121c8f9ca4397d1ea41ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 173aed2ea1a5599678ad30736115994d1116067e81c073edbaa8e91b4a9da1ef
MD5 756bb91d6bee2f121d35afd4d3f8cf2e
BLAKE2b-256 19dbcb598aaf81aa5d8cd8db77908a7ceade72115ad2bf8822544fee2f70276b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 653f12dc3df7f5bdfef27dbc25c20363cedd70019d514e305e7db6e6deffcde1
MD5 f2a414fe5a6c942ad03d4e0e6b4a8ffc
BLAKE2b-256 64c99132f108d9b6181575020d8b7e0993e0cb403e3ea0cd2cfd445c5dd1e2b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.376-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.376-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6227006b1132bb580bcd4ccaaca0bb122a67de1e8af51e092c3cfbb11b661f8
MD5 4be77b2683184023efcf60104b74c012
BLAKE2b-256 19f3b476b089f23d7355af480b8c73486af181cc58e603404faa1765449a583d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef0f70e9bcb330fc004e4f4dd479cf554d1f2f0b99e38886a4929e04c7c8fb55
MD5 4cc5bba4d14df5d90e71a30d9b8e3637
BLAKE2b-256 d9f8fa7c7324281281193f74842c5063b40285ed3faec7c1df97cbb16b9b0cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a7e74f05ef3f5cd2497ad1fa2db69b995f070a6cea1cfa0d1827f6549672753e
MD5 771c63566806e882dca04d9953322395
BLAKE2b-256 7228152400c2066a6c5bb1d21e45a29ec5174e39f717baf12810ba7bf50ec480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.376-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.376-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 12590054d933cdf7acfd248278088f7fdf6dce587f50778f4064d1b17430601c
MD5 c7e1538221413de34c612f24ab9fd195
BLAKE2b-256 73bf88926992601dd52c71e464c4ee4e691a52d39caa9871d24ad1e7fe5803d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.376-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.376-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d65d0e90510931988ba73eee13ae90486325ff97183c1a8910c5ff163ab7867
MD5 3894f4e5ee38a669c6d3f65e99647ec0
BLAKE2b-256 2593f37b673fe305968c573e6d9eb0cb79d779a6431dce869956601c8db0e701

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.376-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8643b8eaddeb6ca68852f7b14f5deb9263a37e1fa8a2a8adc871cf391488e98d
MD5 9f9acc1aea02a1be76060b090df1f657
BLAKE2b-256 c6b4cb747b2b850ab78e1f83343a40e8b6513343a83d3b1e143febdf945ffafe

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