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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.255-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.255-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.255-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6411e7cd30dcf11e2d13b06335a01488f1e80b82658ca7f06a8b2bc7034c5f6
MD5 c68f35d93805edc3179260c614a16cfc
BLAKE2b-256 d8c41914e75fde36568bd91a00e01b1fdf5d034aba816f2f706c31517dd6dfe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e0076568616d44664008ca105d263da50436224c935dbceb54594b3d68afcc7
MD5 dca9d6c2b786fc40fef7487c4fd88e5f
BLAKE2b-256 5e0814fe8f4619a8c89ec205e751d618fb35d5ca4d43b400bf05616a55a46b2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.255-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.255-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e54bd2b578150cf4d42434ce515f652e087d20af5dfbe68786e91d66ebee3b38
MD5 198bc56b157411e77226d06f08a17f88
BLAKE2b-256 902d15e4c787eb1c6bd53f9a766456428bc8173f6dc0f9d9ac15e7c7aa7ef438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06110742ee8047ef0e514215338e641740f3fec5eade7c6306656175e73073a1
MD5 5286545a1059f01c57c3e442803cb62b
BLAKE2b-256 cd50a9ae034c1e569bec4630cbec95687730bf58af5e9c5bb3b3b6587ab7646c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f80ed718f4a5167357d10b134ec82dd24a4534a827b5bd477094817c069be24
MD5 c55ee2341875bfe46767668ac505c00f
BLAKE2b-256 0625079f74f5014a5829a35aa97da2ffd33560e767478473bd2b58eb4375581a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4540011cf293a435601d360d9378af5ee8e7e55b17a2d41d30098ceb753fa06d
MD5 511c4ce0a5e8f829086613242ea6946b
BLAKE2b-256 c17816c9ccc71d3b16f74df61433dc785ffb4f3286687ff1a975510d1a25dde4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.255-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.255-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3296937daa8336a92380b7c344ccec16a22b09e189ddbc9f0748025d81fbd9ab
MD5 a9194185a77fae23d8263d55a7720375
BLAKE2b-256 c848280fd8b160a37afaf31c77c94e43d9ff0412a0fdf7e330d3d1d9e8da0470

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b3d25fa08f59ccd7d53a626fec5976a33fb96e8a1b543bf2e2e6b83f984bf01
MD5 32aa818b282e1e85d76d1184c9cc45f3
BLAKE2b-256 47d5f58c46f074ae02437ace3548c2c3531fab090194b7585b3991cc9242cbb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d744daa46d380cf5495da5064579ae37cce4bea62d677993923e5995e3a538fe
MD5 2fc8b87b5448ba524b40cab6ad97b3ff
BLAKE2b-256 152486f42d94d807e497617f1752cb7d33c4de84d055d2d6e16d14ff68475f21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b93ed8319bedfeb78402066561e2aca13244f239fe24eab5f8ca9c694c1b3189
MD5 471e6b317c8a730fb93d53577a0862cf
BLAKE2b-256 ce2b6acccb83ff388bcef28db8836fe628ba48920cd22a3c7585d59767648c53

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.255-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.255-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96f6b43b8b0935043410b90a7e6199384ee240ba60026c927499c4a6c161309c
MD5 fa66524ebf301bc382d5e97c86719e2a
BLAKE2b-256 45e8c03a8f85c95cde19f55c70318d60327e25e59e4f7200921e1ca71b269624

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 242cd1e33444c9c4e171e62488e7c906aa3f3de16a2a3fd432afcc1e93fdefa4
MD5 db46231c8da626e1110052821ccb8a36
BLAKE2b-256 54246c430d8533291a6204eaaf770f806fe07da4ce1ef4e083144a13920d6d44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9706e360d224600b76b3bd6fb4f8cbcafc760a76d661c10f58658a17562eaf3b
MD5 8219e66e3702c7e802f0c018db9595a2
BLAKE2b-256 9a151dc9c393587085a6007757624dae8a70ded2c73905a8561d5b6a030a9fbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f63354232b4c6239cae2ade5a126bcd7d0af5583d445441f0dea1c8a0e4cd16f
MD5 f77b4560d2ec46692886bc91ae2e43fd
BLAKE2b-256 9cae363d35df5813bf6d6ab46d0c4b6e83f40be0f97edaa4c273fd28d5e8d48e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.255-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.255-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1dd72a60b093fc1d09de0b915105dbb6c2eae3d86f3a9e6300237416e98fb74
MD5 3c18578c48d9f8f90835b8f5284baa79
BLAKE2b-256 5978d88584ffc7c7e25fd9ae53ea3ddd02820f9a94fc3b4038a997ef88c083db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51f090f94acf60828b51e1b74f581c85b84708b5130449737d3cd219fcdf25ff
MD5 ec1694db896294c8c1dad1e32da2f118
BLAKE2b-256 9dfe52c26186f0d4b61e4a608554756cbf526769c2289a4ed4797cce4ac6b99a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fb6d0dcdae41c9ff37c38dc970b36757b9955bc1620f07768469e04f0989fe3f
MD5 79a84ed5cf22c8935b88c9651d02a824
BLAKE2b-256 98abf469629b2401ac46da7a7a93a7a727ff2e2e42de7751f575fb7a233d074c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.255-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.255-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 07fc7c4e62f3f9f5cb359656fc5a4f5a995c7ee9d02134f231eb354de44f4548
MD5 a3646d35f7f705b4020c278997d1b23b
BLAKE2b-256 a02e26e73e31e1dc7546049e34a1fe8f76393fc97c68fd475f620cfdc784fb6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.255-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.255-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 879fafa9ef8ca77bc92afdd9d0d83536aea513ea464956e0e0eb20f8703fbf94
MD5 87118e0beeeade1480e96a45c96460b2
BLAKE2b-256 6f2ebf5d6cd7cf63ad39db3bd46d58ba3b950838b489b56ad11ac333f676d5a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.255-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d29744f23a791cc004295272a555650d1274c968905cd8eb53eb154fe4b793aa
MD5 c49981e24bba50e062568615cc8e02ef
BLAKE2b-256 ba48bf039cd927fec0934716f8a02edd466d22ed8f2dbddcd817e5cb7b5c09f4

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