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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.262-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.262-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.262-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2b745f5a04e3a6a2c66592b31a6c477590d5c4467bb9d524b81b129a3be613cc
MD5 3e63399706e02099166f78d1f6ba0801
BLAKE2b-256 06985a361858f51baff64990b09b1927eb9b0c38e8319eefe1bd91348aa60562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 51330a6eab74a92ef6f9af84a792073bedd30a178460894f4d75bdd420b43044
MD5 abf591ec347d4588cd4b1b5ccaeb20b7
BLAKE2b-256 b6de57325ee224ad335489490b7b133d608193434b30a25772d5dd7cda9dce7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.262-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.262-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 993fc0d6c3c2fd615eedd43dae2fed120997a67c6baeb8eb87a71d9054614880
MD5 4703b8061a224154f25e336d1adfe651
BLAKE2b-256 898194a583b9bb6a269f70dfc067c0665048248ac19d77e97fc86e0f2255c7cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad77099c2d5bcb88be53df2ceb27c9f00196af896268c99bb9906808af8cea52
MD5 59552a4888e9da0584cd532d4a0dbeb1
BLAKE2b-256 b7ee90b69c9bf93bf81d5ec0a6aba3227e3f9362b315193e6c0126ce2dd7a8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9f28ce710c1b5573821afa8c77c0d59e955723107d1a636f1512c66f97827e6
MD5 38492c1125e99d3b5bed711ce3f76c4a
BLAKE2b-256 cfe3bb716b29822c245c72b29622fb7e15b862292435ded65236346cd135cfdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1351a053b10ba5acd0368307054ab253ce5fe325cee8a7994f2ee950e3023cd1
MD5 257777eb0f90a407b8ac0d3dd373a4b6
BLAKE2b-256 9ffbb5cb821e4f567ba42dd1f6d258087d28aa8b5b8acd129cf911dcb2385331

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.262-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.262-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 042406339446bd57c4f7796e7e1a6bb450e046fcbbc047ffdbb658d0648862b3
MD5 a5dc86b2e27bc9196362434573c310f9
BLAKE2b-256 ca29484963f77e5d27fc388efca28bb065445c28261c2966944337ba73ef4138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95e2b0e6215952239846a1a4d280b72515de71c79bcd1be9e8493015cf27191b
MD5 882b4347bc5a44c5cb201db70968efac
BLAKE2b-256 4f6021e2cc5a7f076c1acb4a9f95c189c453064a510c6b742ce5da353466a196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fb46be780433788728cd4cee355c04008f8440e8ebc329327bd6d6f46cbf0065
MD5 c6d6caa22d763e4359554de5b64b2526
BLAKE2b-256 48a2f6d74ebd82376fa4d1dba240615bdda95d44e7aaea19d495aa88fcac57a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4f7479fb094a4b6d0d8ba0503d772d08347b1b668102251c6c5b560fad3a8d3a
MD5 38e113fc84ea5d6b3b0f13176c2bac59
BLAKE2b-256 0619f60bab4b3dee27ec659eadd129e7d2bba52a47305229466584d86ea3e64a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.262-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.262-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c41c4c12c21db0dae63e23cf09507eefe573ae1bea4b0ef3cf2d2b3f3ba53e0
MD5 c5b35264db92815442bb8013f6408790
BLAKE2b-256 0683bb094beb5a226218686b011b896ebc6b22a1ea529adaf504b1753ed2edb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 099a88f89559a6a6321a6b73a3ebf2211701b31d28687c1699e3394bb2730d62
MD5 054101c0f110228315beffe32233555d
BLAKE2b-256 35d297c95df2d3a9a6767a1f50801561822516f24c868a91ce5708d67b75a1cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65d6607122d7390a09cf76085030be230532189ac92e0306f84f0896e6309358
MD5 e79b013aae6ae98561c09da70f3da02f
BLAKE2b-256 5cb05138b9f1d804994edb639e391a432ae5add470ffd0cbb48b9e109f4e08be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3b6212a735caeaede2ca8da37a91d22c6ea29b32f85e2d257a1677a0b67ca1ad
MD5 5d98d656590f3550dafc7ae7a1a55403
BLAKE2b-256 07a430e38ddfa7237513bf242b98659d4c5639daf4fb50658cafa4ba42da17ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.262-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.262-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b26340cf411098788ef0600aa75655c322a18f8908e060da4d9031ddffb81f4b
MD5 fd9679d4df158ac17338a6cb3a3f5f8d
BLAKE2b-256 91fd21c531922a443d6d48bad28dcc89c46da2f94f4726f9521e6f1e53d54bde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f28674527e3296aef7ba245179962388682b1d493a447ef3ada44f66830aae74
MD5 eb8121c4eba5d1965d0e8fc257b97c55
BLAKE2b-256 3723fad89a20614f21a02a22b0914c0b9240060b3b5c6df27be9339d027ec36f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e8501a3804580d80a75e9e673fd32ac069783891d3221be058b24c1ccbf2ad55
MD5 9a14283fceba7ee22322ce134630780b
BLAKE2b-256 a093e2e4fe8665a07d3ec5163397de75382be324d9d6f46b4fed8460b0322e1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.262-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.262-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 209610298bee00ebbaae66b409084efc3cabfbfb9b1691fccbea67b47359aaf6
MD5 3ffc5b089153240a1248de65c1f1193c
BLAKE2b-256 1b2b97e7a88b021acba4d8a6a3a7046856f90c4b62dbde5bf1fbe3b819cd05c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.262-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.262-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 894966e17f6cce4ba8617367923138b2fe46692e239a041c2d2f22a16e118797
MD5 c8384110971b751dd4cbca3da0b9c92b
BLAKE2b-256 eb1b74f639a025be39ff5c126257be72b504ecb22eeb2ae2f91e6e070e282ee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.262-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83cb130fe9db565f4639eddf422c50310cafa24014e79c3b5e01cc661414697b
MD5 8f6dabaa10d188db1373dfafc3a8fb0d
BLAKE2b-256 2561ba21907679dfdaeb52b38d7fdf4ad50bcde5326c2a87d41dc04a14ca20f1

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