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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.330-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.330-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.330-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7fcdfd112fb7c57ef9f1fa4d00b539d449195c48a9c1fd15c247c0980715f665
MD5 e42a14e0ebaa4e1c044a54a2a99d1da5
BLAKE2b-256 1f51feb29e7ed8067942663240c51046e8b8ad053f724a81a8421196e6865075

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d1a47b18067aa3709d115e2c3076bc57e87a649c73e30603b54769fc5b2018d0
MD5 2f56410ae240fb60e752f0a673a70562
BLAKE2b-256 fccc4ba7abab0b50c81ad0b23e4c892e3b2ae925640b201f5408f524261c7c1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.330-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.330-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb306676275e3e8e4a9e1fada3cec8d1700ed9e715c08da700db57d029cb2a03
MD5 f9b1e318fd1d4b61908ade05c0934d6c
BLAKE2b-256 0b4dd7d0323441aef3bb95efa6be242e79c7c43492562219f209852f87036774

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3e4849c265debca40e8a07d9e8ddc24d2bc155dbe3f027870749156c38876ef
MD5 4d22629b987c6a2eb34d89ff1fdadf6d
BLAKE2b-256 e9244b30b093ec2fd82bb0402fef708eb4e8624f5388e10f6b7a60f6deb04f54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94240fc224ca1e5a2ca8ce15402afce160e7cdcaf5ddcf1885d179daf8b89573
MD5 c952c8f9802de343e426918663611999
BLAKE2b-256 3728c771b39a7ae9f699d9a333bdca8c201b69c61d0f15ddc0db4c04c0dcc560

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 51ba6f984c52d8d295190d7b54a5ad7615fd275e2ffda23635514f8e9a6d2a9d
MD5 7a61329b7642ded9cccaa1036cd7f7af
BLAKE2b-256 036ab311085fe4b42b9451f57a6eb42d11a1f343a2434c1d8ecf989f73fa5c37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.330-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.330-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 335c2cdc2d465d6c117de8c72d86ada7008fc3ecc3bd0b0969011a946249a0b5
MD5 85633b160f3087d966a57e3a9aeca7d5
BLAKE2b-256 69aa3d41a4fb5d8b0bb8ee2cc2f2bbb698380f9934cf31ec304c0eb072aab17f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 334ad72ab3a32d9f8f94ee72e1c3c456bdbd6db4c8dfef60718883fc63f8c5e7
MD5 38b5efbcd2d08784c38b8b631db1d766
BLAKE2b-256 a4977a373c3fc97510b08efcc6267fcd6111aefaa26e5c51bedabf407a5f3380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 09e078b6944679062cf31c4b81e1193b25f0c527ee6b2f021a533ba0d68b4a0d
MD5 94c9cae040a415b3404e64f91948b7d2
BLAKE2b-256 904c01b1207c77b72a66b7f8f22d8427f27401a6f928f7112f180bc8ff437b56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 975b259944bc48e21a76dc0330e904385f13d144e6ae4e14b0bca1401ab53418
MD5 fd58a6137fd6d46170e9fc4be459eafe
BLAKE2b-256 016509c164feff445aa5ad465f312ff2923c145ced1d9fc1e439c818426c45fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.330-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.330-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a0bfcfb44a27291d491c86bc8e770766bf62753b1938a9ee899f540c93f8cb2
MD5 00e971dca54210ab756fccd8c22178ac
BLAKE2b-256 ce408d6918c951a97f33a61c24c34bd2750cafd82c6eb70e4f28631ce691ca77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3359f3ccd57090ef4516c212fbc3fb18bcf65ede699e05267d5a5b0409d4b33a
MD5 242e05b854b7ec7e4760d1fd0c3c8518
BLAKE2b-256 9e16dbe1dcbf3e9e6b36d6c7e6431a26f339ea122ca66e09e7a9a730e39df099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5b5e5571812ec6c30d1ecd629743c8508443b28fa98cfbdb08fc75fef4ea5701
MD5 6ddb592a0b855876c79d543816dce7cd
BLAKE2b-256 368571af832b7d18c2cfd1dfd88a44398e90cd26c22630171ef164723cddbcda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4a72af3fd201c3e34a702999d3ad93404cbce01064d8a9014825037947dd59f4
MD5 2e2d89379b3e521cbf5b4edd5058acca
BLAKE2b-256 be680a6608550989463ff9b130c70f3eba01e43657906783447a879ae4b2090b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.330-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.330-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a191d987cc67adab49834edae76ab9b61ecdc152d1a5ece99e5d1adc8bf3dfcb
MD5 ab4f838d00232edeb81b45d8753a81ac
BLAKE2b-256 95ffd38212c8fcb02c8e0806d48b2d46d8253fb1e28fe63e3142a2832a86002e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1956d73fd4082584cfe97d45df00a354cab724eac47ae2aeda48373ca1f2967a
MD5 dc057f70e3b80dfa3e39c982fbfd1eab
BLAKE2b-256 a41fa4ffcd7bcc2debdeb61a28b6278f7f353fd295702fb2e5958fc10b6f24b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4da89f5aae9fb87e9ce469a76f5ec11edbdb7eb10d6055a868cd4267f84bc0c1
MD5 7e59a02bb7f126be19c8f97aecf9be73
BLAKE2b-256 731048c3d344b3f6b551adb753efa5ebfd89e5580b80264dd69b1fd52f3191d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.330-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.330-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f6e5e765506619a3008cf500c793b1762fb8db04931dedac468795e1adf1005e
MD5 601c9c340b48884528072028bafd73b9
BLAKE2b-256 d22c855e29d0ff80ca4b925ba78d41039115bc2823593b3b730b8741b949e2e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.330-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.330-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dba01531aa3c92a936f07e874ec1a99cbf0e25913f0594af2735851b9d9cd357
MD5 3d7ff9253859d631b2d51826fe6c1a4d
BLAKE2b-256 cd7ccb0b4faca1c181d976aa1672b9c1415dd2c34195ff5aace2bb15da1e2005

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.330-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02297124efa848f05021361e2af8382366e3211b2d7b11b29f98c1842ca02726
MD5 d48a13d3486fa950e1bfbf14785725b9
BLAKE2b-256 f2e09902b6093803067b67a167963bdf67e2d387e47f9ca829d8f5bae1b49c1f

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