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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.546-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.546-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.546-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 77f795d6c1a67793fbb529e96e051d2c18c4a7c6befac43440ac4b2ec3302e3c
MD5 2378ff803b7f2461eca10b3c8fe36d3d
BLAKE2b-256 5e90a1b429134d2da6f6064b75f0aced039c50df28710bbdde76383a996786bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80686f2019eb2a991231069db481171de86bc27acf7c76811d5c389ae014bae7
MD5 0a91baa939d982b5490dfbe74009d2d1
BLAKE2b-256 53a305d870d60d6c24798ab25fd7c6dc2fe02bb914fb03ac084e4c77567618a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.546-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.546-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fed5e073c9c5447a80bad5db1bf8131c57f23472b4280bf284a2913c6291baf9
MD5 65471612e01a43982292df1a34d98f6f
BLAKE2b-256 5da35726dcaf2554f9db84765119e51fbce04b780d432a86d3572088b76e5c8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14fcd9f2733d81f8f5ee84db99e564f22a0ded994247fd63352c047bca399069
MD5 d664e865b4bf28b7e94161b7fc1b4f19
BLAKE2b-256 28bcfe54cb3e38f0f13c3684f9e207e3e249eadb654fb78ac6ce61e297de0a16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 186a41d5820453d3e70b132a98accc34401dd8aa785f8f58110d05cbbdb1267b
MD5 1449437b78f7a2ac47953a249b96b694
BLAKE2b-256 0947c0742ab1319a0858a393adae13c87b13ebed236adafed937a080f98cc6e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 44c380691f59c51d4c4c0a462b5beff2a6f25568a0365c253d6a715eb470b3aa
MD5 ad56c0e7d69212140d320e994f8f31b4
BLAKE2b-256 ac293fab453e61ef92ac7a2938c478d229e03efa413f5b105be78f3f523f5373

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.546-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.546-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe7b753380be617e630961e04b00bac8b42af5444d5a2e674c9c9b0369d632ef
MD5 b0260adca3d468cb7fda7e4afe6c1c02
BLAKE2b-256 03f622333b86860afb5eca6d214bc563903d9b6a7982cbb3a8ddc260756d0ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d3037e0945870e401166bb6c3425a0329faadad4b10a874d24d423452685fbc
MD5 df58c6bf98c362fb03fc0b49b32ef538
BLAKE2b-256 ef0d61d0a934323cc99eafe06c145e6255b96c90ca682dadb0e991a7e3224d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 339733f2902685ef8950d0e850c62ea440baf02cf1683beb24ceba3f078cc70b
MD5 8f70dd05ca871199774c32b8546001d1
BLAKE2b-256 4c9fc070db15d8726517ca53c7fd6555796dd1fd9e97f69341971113dbbeaf89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7b33f9728b83ac3366f5aff45fe47113dce98213c78511259dfcd84947fdcf40
MD5 e7314578082bd134ac912ea55953130c
BLAKE2b-256 d4923c988c817daf284311e08027d1bf334fef2d588a75aa3728e6d63b4b5fb9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.546-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.546-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6a5e289a4628c9547868f80650a10ffe65d0a32e61f3f3942978afc74479e58
MD5 e1346113cc3b680f52f53c323c0c3fd3
BLAKE2b-256 34a95775c858fa326f057e7176eb7a368080855bcfc9e6cd38639317dc67a0f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fecde06d574b205750b85b783dcad07f2ecc02ba84ee3d1033d369e3dca82127
MD5 24ebb040d4eaac17fa5526af739de077
BLAKE2b-256 72c17db6031f8965774fed715c0aa593a7236148cd1bf999f1b75d8cd4f69269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5147bfac41866f8aa2480c4ee581078433ba23bbb8701ffd1ab843bba5b1a93f
MD5 6ac6128e665cb7e6a90abd3c47490bc4
BLAKE2b-256 b63b609261270573d769e8fe490fc91097415d058b3e05f679719cab771819d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d659d22d3bd18a980e6883004549b8ff565d9a32e7241f801072de104a46c335
MD5 8f482b47568ab9ec4189b9b515175639
BLAKE2b-256 9442293c9cdf037010e0b83a99cd5478136ab83dfd871a7f622151fb6dafad72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.546-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.546-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bca7574d94eb3ae15702b34be6eb247a6ab89e9d5cb2b97a09ffc970115129f
MD5 3a9ac22fdbf65540688a9e9d5cde5c7c
BLAKE2b-256 5a01912d2bd9e33386f3ee46983a9c9d8dcb4892ce08761db9dfc0237ccf1aef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ff07799dbc4be70d148452753ec02547c8e193cd48933c4e99e068212a5e0db
MD5 b46eb4649468f95fb6f049be276952fc
BLAKE2b-256 1f88e301b47b7d75ef69be7574c1c499a3af5ae517243f97994edf8baf1b2c33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3427f44ebf8cf9774952265d061ce11055641a437daabc5ed2700fb7ae821b3
MD5 dd34b45985a1365f7f2a5ad3ce181f19
BLAKE2b-256 9fa9e717e0bc7c9c165111f16ea0e2597561d5ae33d9e62c7d32fc806ec7402a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.546-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.546-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6cad32f9e2c709d90732cb285748ce58cd9e80ee92c794fbfde44c0ea331c5c5
MD5 d15f06d40d7567bba8d8b6b2c857f7d9
BLAKE2b-256 180fcc0590bcbed321d58de4d037dfa079411745097e03f713ff349b2d5c6a55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.546-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.546-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb9a54add5d8b273ed8ebfa9193a548e651c8d900f520c8e46925a5e9864a0f3
MD5 c61169b9971c14f22acc9b497bc025e9
BLAKE2b-256 88bc9d081d708ab3fe410e36ee7dcaf24067b0c720d3cf5d1cb1110a3f6809bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.546-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01ac4fe412f1c55a78a118a1c14e8a918f8a3015655032a873c637afe4603baa
MD5 92bd07339ad85be3477a709e1a98a5fc
BLAKE2b-256 e98345de731481335209dbac242377772c97f30a66daf80e6f15c0bcfe8cf983

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