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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.61-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.61-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.61-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 371ce25af2747ae4f224682089b0501141393913ff90dc57e15636167d7fb973
MD5 1716ab505c7754ee055655ae9ecd9330
BLAKE2b-256 0d471e8df28b1519dd828f63707488f57af57af8f20d3f786defb5e310371d1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a5bcc1f4dd83f09c5e45b41bb376c58710bf28a4c4f2d27cbbbd57221a7be5a6
MD5 c8fa4bc6315eb7a499bf277e76ec233c
BLAKE2b-256 a11d9259caf2c1dfe408c4ffb17c4303934d3974d7f180f39bff2d38eaacfbdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.61-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.61-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddd6f8997f6e41945ecd0d3ab46574408b47effebe710ae1daae39d20e149f24
MD5 aa3acdec41fadeb39e0601ed8ff6a37b
BLAKE2b-256 662f62aef41fdb930a174a10af1221937a16a7115a36c86eab041d264d1cd0aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.61-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23d546bcb951251083b469d771eab58a7fd6e4f5f0af7635e36fef8d568957f1
MD5 4652b04466f7eb91455a8432eb6ad565
BLAKE2b-256 58dc77a931cc78e558420ab24a66569f23776a68be32fc7995a18a4eed6dac77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 23f250eeb10e7746d342e023cdc9cef9f82c6a21ec6a5d789903fed1622febc9
MD5 07a619bc3a1f3ab2a68fade450c22268
BLAKE2b-256 f4ad6cc8e161aa4d2c4ca89f3bf614086323a2c4bfc45624c98ab00a05ff9aa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9e5d394d914feddabd4796697704f83714175a34de3dc2ebd62cd0f06b97419d
MD5 c4c6d3c72f05bd56a0462912b9655eb0
BLAKE2b-256 8f4d43fdbbdcff4945855e68136c9fce770087afdf0bd9b825831aac79e42830

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.61-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.61-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e8e3522309c93cb1cb86ef364a47bb45e4e90aa65d2a282f4e5792bd7c69cab
MD5 68c1376112a5e9511419a8c264d00577
BLAKE2b-256 ebb7e01edf799a809aea7370daeafb3ada86b7621507035522bde953ec078cfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.61-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed9111cd70f7def924dc3c3523f13c87187e9e419326fdd16b8e459c2ffaee7a
MD5 ae6a70e99e6f4ddbd38c8c467e85ef8d
BLAKE2b-256 9257052fc0e98db48e42c40dc35a9ab6d1b8594c2ca9a8d0a76807ac63c6a141

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 071dbdd1704b005812d1efb0c8bd9ffbc7e53c1485622c9be8b6b666ea50f7ee
MD5 e9bd07d4b4242f9f2769d4eedc6502ce
BLAKE2b-256 c022d11869ed41390b2d4e6df03e3825055ec0f62d65f84b9383aa4549df0b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 30b3c05e0cfecc42ed1b5b84dc75b2db4439c92733755a5afbc930a3ae61a58a
MD5 79a0fe6daab22cf42b437332215e99c4
BLAKE2b-256 faf42b0b0dc7c840cbf538958d20e670f8b420650dd410ebb83c4321cf8c9b13

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.61-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.61-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb40ee6b33134387949c5c189faf93ece60e071a75c2862a801f48fececf9cfc
MD5 810f4b47bbf7def40c22c11d258faf43
BLAKE2b-256 b10ceae5589301b83b8ac0bb0736e89cd0907e7803554ecafc3021b8a90fc15b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.61-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a80c915d330a295c228f56b7050636dc2d8aa4268f0672b5ceb7751e7fec98e
MD5 81e2d1e43e89ebdc73562306102d8901
BLAKE2b-256 50f1f340b1827ab48372ca618feadd222dd3a06d0d9dbac175440f01dce2087d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5cc384506735de81c524c58c593304e8577065a069848a5aecb31c06b4b35d9
MD5 b25558c99fe6ff7f491abf113d938c82
BLAKE2b-256 37302ef9149ec7d6b57ef3e377d536e4d426fd98d8606ba401ac58654509f951

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3f2ff55ad496fbaeab51e523893ec43838087d7e3ff093c38e1120b6dd8274c8
MD5 f0514dc9788f71133d2b471d7b89447a
BLAKE2b-256 33837d082b64c762e76a2ce6899c94f857c70109f617eab85be2719165cbdd66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.61-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.61-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ecad6da6e60e4a38d64b21d21074e325978c9dd620b10fad03ea466ec24a579
MD5 d940af352ecee675e8e45f6afffb5f4d
BLAKE2b-256 724328e54c1f6fc4f61c666e49ffbb483361ec133933d6602060ee424d0204f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.61-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67b1f0a94e446b0df5114250b4a246e29601a07747142d3df448cb677738c063
MD5 29991058cc9766cd280c7d225c358c1f
BLAKE2b-256 44693541bbb58bee1604608b9523178a39e12aba80b2a58e2c19124d85d9a21d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f08cd87eb17ba81bc55a9493b90300cfb197859c5f2f538d0a0c508b466bb8e0
MD5 25bc39145b7e2326fc477ddab9ee084e
BLAKE2b-256 2fc3515ca22f6bbe7e4abbb0c126c891a753c34301e934ce8711159d765f691e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.61-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.61-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 80372d13ee04d8c0b9838c0381035f4388299754ef20b0a959d98be762bf5e06
MD5 bc2208b801e6e221ce618b76f6279a32
BLAKE2b-256 09a76366028be25c95d7ec95f41a8ffb2368b92b2983756270f5e152f4320758

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.61-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.61-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bed72b46998db454c3700aea32f3c0835601c5791adaa0da9b26f7aa31ab0508
MD5 52fe76d714aa1f89aa775fcc928963e8
BLAKE2b-256 fdd8b20a46e278ac6832e4c15ce100e4ef30632dfc4d41b00c03271443c0d16f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.61-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c8cef535aa0fd38ae484e82d064b50a4c7f1f090dccdda4c1fa956365eea87c
MD5 5323e1b598df278b42a32bdcb94e9685
BLAKE2b-256 a945959b21e13cc0fddbaa7513ea65d707cfacef0d35266adcdb1e5e516fe498

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