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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.417-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.417-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.417-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a26cdaed347f2890e9d8d5c55570bf41333f751a692f3f473c3fe60187b85a60
MD5 de0cbb62d2612031fc73b2c83ecc0a06
BLAKE2b-256 3b01be980a4ac66dadb056bdc03f316fe9c3474470c9d96efff8b3c7e26a7dba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 61a0b2220e8a9de5d68da2ace6966c2ad4eaa87bbebf48a00e3f7e13c05ff280
MD5 e721ce8b70942cd4ef312a21f46fdc51
BLAKE2b-256 35133dd6e2f31fb90841e112b3d267458f140fe44d95c6c6ab5facb236460b83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.417-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.417-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f60913c16134b834b8082dde905ea0045adda72b05dca894fa558f1e7757faf7
MD5 5bf9ea4cbf7f9d119de785ef07328711
BLAKE2b-256 fd59493f23a6b156b72c23b43786660609d9ccdf97c375dd80ad6f425fdb3d3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50a6668aa189c86b6fbb3939c25e060a660a1a4b3aa993672e88c7c5a44069c5
MD5 50b379ce1ead2f5a528c56e69d19fbe7
BLAKE2b-256 e76209a2ea33401744e58ed981de294e39f62780ee3bab08cb595e08a18e9b36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 56642a68578dc87e44cf3683164ebe5ebc4914a5f09c2156a4a907965debe819
MD5 833447b91a92746a45e905c062652772
BLAKE2b-256 d7e29d3e974bedb28377f3ebfc71d7ce7837b055d0588458bc943cbc7b362618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d0cb023ab21cad783be42bb8e244c3b02343f1516681ac9926bdc61b00df3408
MD5 97debb5d248e354bed052c519a5da2ce
BLAKE2b-256 c01ae60efdcaebc4b93ffde36febd45c1b46a41b3b4ff760fb6f44039f45334d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.417-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.417-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8379834526396d97e598622bd51ceb65ef5e296829a1645209594ae69d103366
MD5 a591733816bc515f8e529db780db786b
BLAKE2b-256 0c994b267c278e7888db8eee88bf50ebaf0026d44e342077e2333b0e5fdcfcaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5a9919bee45e7d4a1ccddaec2a53a898e048a95fd93408b33e7105a46efa2e6
MD5 fb3ed9dbc11a2f1e9847d0559ee9a4f1
BLAKE2b-256 2be74473e052138ecdf892f6e4031a2d451da84576441345d4f1344240621900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 96e01f09c969007feaa871600eb8aa3f0818d5bc492ee211669994421a29cd20
MD5 a8b7bf29d60291c12cb6a860f2702aac
BLAKE2b-256 9b686db1c2089ed05b02a5565718c04098f4e2ca371fed9df51e20117006f323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 579f7d8c91e64d0b6fd17ebe8dd160a0e031d6ea648eccdfe2aec7eb9eaaf737
MD5 2266be247241879f7adfaa607c90c98f
BLAKE2b-256 c9ac8c515808c66e8adc92180ee8b774e094bc003caa319dca1282c7df003328

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.417-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.417-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 237542e3ee05d64abcf0f0931321f13e646789efc841e350b2a16502968f942b
MD5 502e0e41e3bdd71da73938891445788f
BLAKE2b-256 97d73ad5133ce7b53b202e192de9712120fb525596ec8ea44336e2d2981df9dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8647718683df468bd155d0d619fb2babcb5df996ea9b39be109311f5d579ffd9
MD5 6400efdbe71b19670a9c73a2c60432c5
BLAKE2b-256 e3fc100a609363109096b1181bae21161f9b7b22e58d55d7b709bd1fdb1524f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1edbdfa9dd928ed158db7b6745bff9c8314dc74d3ff57872b32cdbd7b243a17a
MD5 c4be695d42e8f74166d6d88d7254120a
BLAKE2b-256 cc04c05d476633876bc7569cafef2cb1a38bec856ba3fdec663c9b8ca04bc3fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a400cf24d4394fc529772e0a4579679a9209d1e2c095652d4741c06db3865cf8
MD5 5bf6e0c11ce885c20ed5686eeaf7d072
BLAKE2b-256 9d4cdf6f2a9d5b3d6a0eaf6ff3ed4fac823d218c937d538aac57e8a5a6798ffb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.417-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.417-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21bc93d8ca427cdb6994d089113118460a17def3a75622d9581e8bb2a5b9bfb4
MD5 7093de5ccb3d734c73b2e46d84fde053
BLAKE2b-256 047a3f5eca5ade6f28dcb590248bc77face7e5de2c92ef1268cdaaae302c48c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1d90ec7870d6c2c3a4293777e1928168099a349eaa8429bd53112b5c13ccbb4
MD5 bfdb9815f67720a8fe521439125fc513
BLAKE2b-256 cd50eec735f9e46329f8dc6f89c4524b51871909dd61baf514195d7856d7f0b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 40e5a3059bbecfd3d6b8f8e63dcf9d1a314b9e1fcdc0b2222cf5f180a41da6ac
MD5 8db6ceb65279e21fdb6ea15e6a6734b8
BLAKE2b-256 0b9e3af87b42e81d012543b0ed2902139ca0d48ca8ac7b4f5f3254f3760320b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.417-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.417-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4bb4dca2537e7b96691b1f8698e1867bf2ac9f3cb7f56a98c899ec54cf4712e
MD5 446f186b5bb915585333f4ddf7836e53
BLAKE2b-256 bb0ec5cb244efe8183af8f4b94ee566bd98a47ace1599c740dfe1dcfa96a0495

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.417-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.417-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a373222bc44abb897f191ebf9edf30ca8f2cc129870e9a96bfe6bbe6fcd1ac3
MD5 fdebc65f3af130a5c8643a1b6c0c1a7c
BLAKE2b-256 1055541048f20b5d3d2e5f91c24c54996b40a8c1763740d7062c4f93ee246a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.417-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3076429797b80b2763a3d3c7bd42d4113849945cd006f680530271bdea7cfb3a
MD5 70a8b7423288b520ac9b3f1ea03bb7d8
BLAKE2b-256 d0d7a4045aaa304a93d1582e9da4f03f62555200c63cef73b42c642efebf734f

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