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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.797-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.797-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.797-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11213af49a06e075cf3360a3a3d16092579bc6ea25954aa33276735c6604a460
MD5 411ebabce4e65d364bd11a380422940f
BLAKE2b-256 d8761b4e4564d6c8242a4a3cb665f6c537403ce33fe1116db6d3d45484800ec7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c88a1e785ac7595c4030158298a4f61ce37fd4cb1a3ed38665fdc2766d31cf54
MD5 28834e1234d75d7f30ffd2dded1451e4
BLAKE2b-256 ecf057a75252adfffc411fd1be8326a8dce81c1d1ecaf4cbe45fac81e55e45bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.797-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.797-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bea5357fdde2f4fcbc909607946ac1384080a9f05144da7415e86e3254e1b017
MD5 ebcc2d7b46770f218372b672e89786e4
BLAKE2b-256 794ecc382f9f1ba5c2dd5386645a4363a2d2cb8139ae45ce9d84d0d1ad1cd016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5798ff4b985d5cde0220f034e33a27f193482312f23c9f61f86c7a768cf5103
MD5 673865b781f2c7793efc31c7f3ac7895
BLAKE2b-256 9507bbe657088f566ff93ed79f57886259ca4cb07f631798ce9180f2864ad0db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a053a3dc1214e40f98c015cd3c51708d67d518acb530b0f0a65537466f3c8af
MD5 cd026e5eb16ef7dbc9950bc72fefdaa3
BLAKE2b-256 88f165a29f3a89238e91e3d8a5e8beb942182e84be83f14e00975f926aa79b0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0e484f10c665613e8759a7a88790f14bc5d04ac3a6f740dcba25685694a9ce81
MD5 b09ec1e3c713f94c6bbdc0e62291bd92
BLAKE2b-256 dd01327a706f3b7c6c57a034ea34f6c3a59c45669f674b7949af72fd27178302

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.797-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.797-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 416a87e0ce814b876e0921174e3ed7d073974bfddcee551ca0f658247fdf6dbd
MD5 79ed3af6733a9d485de2392b90c5a9f8
BLAKE2b-256 b065336ef7bf136221f0c8f10cb3fd486c1b6efcd2381c067ff3f5806daa8068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68f0f5956f99dbd521c4fe1ccc662c5ecc931c73ce2df3e1d5a1e8091346b6e8
MD5 6c81715cb5a4db9b13c0387b43e32557
BLAKE2b-256 e7a2509f3b871eb2b27db19992a66e5ddf3ceeb7318cd91cf33c925243503374

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1851edd1427035188b113644ba664572b363c3f067d0bfdf1554577222317c39
MD5 902b158b018651136b6bb0fe6b81e5c8
BLAKE2b-256 d4bef9dac33247ddc07a5051ae94d55d23679b5563d70485d2338965ccce54f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3e186773b73f2bb24911e931e3fe1c3a0ae1bbbf25dede09d9e9e76284fcd94f
MD5 9fcf8b2b5584d407a015f8abb1eb34a6
BLAKE2b-256 a20f749428a8e5838b1c2bc339154f1c3fb1f7f916b4acd44bc5c4356bf87527

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.797-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.797-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c0a3ad21dd61e86e462506fd5124c6c4ca325360856d7c70312d0a9980b81b4
MD5 4a77e3cbf7b6f5cf256c5e6857189a3e
BLAKE2b-256 c10da914f09484ca53f87e5d35d485a000cd4345c334c4c2c585f91fcac4198a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6fcb0767b9fcfe14e92558a6c31ca4d6e703de1adf485543bf19da39230912a
MD5 c86a9800c9c2f8e6ea91d560f2b4cccc
BLAKE2b-256 0150b43a4d6961eb066ab7a9d8d3899359fab511b047097c1f58f97960f12495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c552056a741a335a36ecb6879c0c114989250cd5422ed6cfaadfa02b3bf5c5da
MD5 d57c25b5bcb51e54f65a10d4c02bb7af
BLAKE2b-256 5eeef0d361729252209b85b71cc39857b4d37079fe612fe99ee17b60ee05c6ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 286fc523d02aa11edfa76a4cd1124ccdf6ebab74be5207a8243967195908a33a
MD5 0411f032f76a7469fcfcdca8ca9b7189
BLAKE2b-256 eef7ae1160d82df8c0883ca35f7c51763c9c8974232635b50b8d6eb3d7d58e9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.797-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.797-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 375c1068b166b870e74b30dbcd755e1bddce74ec036bd250f0171c2c9900fee5
MD5 7e49fb1d71ebf1d08770eedc422a59cd
BLAKE2b-256 fb85f7f48d64dddc0e5941491ed459c6ea37326b79bbcdfc48158aaeb1f6f6f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 436f2e41d44dad9abce5a544e19195c356ada500c1a6cb8c4cb21eaf10f48f90
MD5 57040c767db5620d40d5aeb26a5646fb
BLAKE2b-256 3cc10d55d6e1b726e0d226cc9a106f6c3d86df51564542f29ab1cf9facd6fee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b92c1006c7d9406cb2b09734b830a446321914d77dd553696e7342f108ebd23a
MD5 26019fc268f15750b0073de0788cc478
BLAKE2b-256 5f5b81e812a83f63c6521f3da5aac8d9bea52993e1f740139495ee5a5200192d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.797-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.797-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 67c1416fbb93e5c17048ba73ec547535b5a6a7f7086cca633198a1eca9e914ce
MD5 d535fdb12654afa5613d0b72c1eabaf8
BLAKE2b-256 fcbc7f428428937b01e9569740d3072a9eeb464b3e89df24b0fc059a5efee235

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.797-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.797-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60402bab6296d617f5b17e700e024a5a39e1267c3c67acf0507fb732db260cbc
MD5 41cbfdfc8bf8d61cf0f8160874acc5e9
BLAKE2b-256 e18ed9e08be3090d3593c854a6b611e1e675df924bee22bbbe16bc6ac81c33b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.797-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4b2f44d6c5e563c1a663045543cc34c34e335abef9be974812c8ffd47fc7137
MD5 e7d727e2040b5c6e62872af6e650ec94
BLAKE2b-256 fd12a524c11ebbc3c2c1e11e7179dc9b3fde4e58b60b38568f07ee4b96a07eba

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