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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.3-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.3-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.3-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.3-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.3-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.3-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.3-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.3-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.3-cp39-cp39-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.3-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.3-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.3-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.3-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.3-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.3-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.3-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.5.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6eb201e255651e6c97826cd60d3eafca8c2ec24bd92a1b1bb6fe16f0ca44bde0
MD5 acce286bf9d484cadce755eeb6606735
BLAKE2b-256 d0701a7d7395339b63f473732d70cd4bcb93fb6f9d034f4e15cf9169a4156fac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.5.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fe8470f39c93fc52e02139b1bbdb015e7b81ccb7465034c9a7e6768418a16761
MD5 e83c01ef5aa7164702e3322423374275
BLAKE2b-256 ae2fd5c62ea83b9b810b6e44a641d72eca00ce8ff898739b0926f20eba2e3427

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.3-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.5.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa0378d4e7a6ffe6489a05734033392fe4dced355edfbd4d10c74e43b43e0abd
MD5 36aa411ef77fdbf66ca02b352545e0ee
BLAKE2b-256 2548a4d78539fee1ba31c5840c5684ffc28a5528b693ecd4275bfd777cc89807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5f80409b860a8b852126f5824e2f153d779dc25177f43c1ed025751729b67ea
MD5 e6a9c1446543ae74b6cc885e8f912483
BLAKE2b-256 d8dec9b3847fe64fe2856bd1fce3b5cba02a9fe933a67ad6a7750f803b7e66cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.5.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9dc744f6e2248ebc56328f3424cdad033d7ca2b59a25e76f832263a40252baa5
MD5 cde60991ea024a03112c56fede1b571c
BLAKE2b-256 dfc8d1f7713be59878c72be0b222bb9775cdbf1e4e482ea06e3f305593cb8f62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.5.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 617bc10b10b913799ea12217edb6affa267614dee79aa0a5c9719050ccd6a78b
MD5 47c79725582b952a020fd9562a5a2677
BLAKE2b-256 fdb8d69402a997aeb04535a67c9c621628b427d6011fe51aa67562f31652a89e

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.3-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.5.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a39bff35134bd924cf75ca477e5131f76a6d612beefb6b7510befca53c73252
MD5 cf10a82d6e888dfd15131e5a63ecb00a
BLAKE2b-256 345dacd19da3626359ae3eda7ce22139fa10941ae4016c3ef9949c58d3cc1bf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a0af6b71885e70e37ec71c48853288dc5119455bc100f12c69941f11bc3d835
MD5 4f80f32bb50fbf3115baf8b1d459a4aa
BLAKE2b-256 1bcc493f41c4d3f8550911270db481b17e5565638ec0938501b34db01deb3e97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 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.5.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9345b9c3c5a237499c7d122acdccd62251ff59250af1185bb83d245d4d28c9ca
MD5 d02150711231eaa90bc1d5a54ca2f8fc
BLAKE2b-256 5e8ad820b86055cd247353e156232efb755b41f1b30d1088c24aa118644a80cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.5.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a32d029bce364eb88f74e04bd799aaa5caa111cdcc62dcf393941a0c5a14beab
MD5 ee4190daab4b8910ffbff64e0170559c
BLAKE2b-256 7f1c573ab16226ecfb58b7330d578a788f5e798e0c734e72e62e709d733927ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.3-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.5.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c6eb7088fb4e87c816692789d00fc72c04afe250eb5d9d0bb02ca150af0b1c3
MD5 aa9984b55a158fb6682f8cd0e3d3c900
BLAKE2b-256 be38625c5db402dab965ad18bcf598667874f262abc2d8b8fe40632e646073b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d695de6987273c3055d406b2d92010a1c639be3e35182b8c1f53acc485df5de
MD5 789a7748dec1011dda2b047a1ddae26d
BLAKE2b-256 4296092c901b631b477c7efd6d3c4f237f7462cbd791de0911d089eb1edab23f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.5.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4b54814a804121ef61f73a57667dcbb610ac2a6ee5d865d33065000461f842d7
MD5 68f35cb1bb1f4a828addd2e95955370e
BLAKE2b-256 41ee2a8519f91df810b44b95b232d9be735db2e51dc726ee2124e482f318e8f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.5.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7dd93c635905a4ccab53da2b80ba010c4a2b4340a9fea40c8f58df9ab26f82ad
MD5 651b59a8cd48c7e4d96b76029b416b51
BLAKE2b-256 3283c9a713af7fb2d4c29a12a46c28d7cafe84478cb6ebee34c107116b081f4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.3-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.5.3-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13aa4c42fa3738e2f0b45a336bd42b7c196bf539a0e6b79880c491b1e12982a3
MD5 fdedd67fbb2bf4fda5f6a188e0c9c3e6
BLAKE2b-256 9f56d37b067baa0199bb83886cddc7a206104dfb29fadf7d1662bec0df2a3d52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad3dbe180c644a9a9c569eb7b8103d65713c51164a83bae2f60e18646ffd6692
MD5 c01adf1c7ec8f5d646c58a5ff72a711c
BLAKE2b-256 417f7779a0bbf28afc3c04669e22c061f83f0fdba88e2d9ece336d082b0cafed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.5.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dbe0f848e86e1bf2fde5f2fe2c37d520e659d43ea422ae7fdb4ab4c17e11b8e8
MD5 9461b172374a6da90e1db5d14facdd3a
BLAKE2b-256 40215a7b95f8b6d124871da7bfcdc45d6bbf939e15728d96e3ff0bdff7f83b10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.3-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.5.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c076410bd058c538a02bcf9d164a60f4244efec4f33fc821437e3d5d56ec40ab
MD5 f1a833306498e55750964fe0e1e3d9be
BLAKE2b-256 a5a53f61c74190479ef8453a52d2c8b4f675ff9b6e538d70f0db45dbb807c48c

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.3-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.5.3-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bef05cc16eaee26a8d6c9ffa38d8498c97b621d7ad200330ab4e478b782a235c
MD5 0077e09d2e4de4c10adc3ff5708bb910
BLAKE2b-256 4d37b87674055b445f91f22fd02ebb472a3de14249442b80f020492bf793004f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f3b3fb9236724a66c63b199fe2b52eb4b23d8681b297d0664a60d81ae6d1934
MD5 608ed78a846bdf6a20a713b73832f30d
BLAKE2b-256 6e2156f9ee234cc535f6ae5855b719f211b691287fcd309c6e669f7c9742aa7d

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