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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.624-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.624-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.624-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b3505b87edb7bc43d584d389700989b8ec4a89d61340bed1f2c20a5f776f741a
MD5 6a0bafbd2305ed427b890a6eef34af73
BLAKE2b-256 e146c63a3117765f1f8cb01479044b40d22406108fc6287e0d28edcda97e073b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ae22299856d1067ba7be56f684feb6baa3884a1098a67b5243c9dba72af83f2d
MD5 1ee0dc26f9f3bd4befd8b87a062dbbaa
BLAKE2b-256 a2bdb79e1fcd3143fbc4a870ff18b565545248cd44c068e549c7984eaa536648

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.624-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.624-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5010fa306bf3149c31f839156e294498525d76df63296dfd6fe67e60e8a460c
MD5 3f821ff21d0afdb2cfac6cb1210ff19d
BLAKE2b-256 3675334b61ddec2c38a4e00312c7c95c4fca1de8d027038fe7d1118678dee037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d64a67f092bb7b2127ba328280a0a55f0a9c82650836bdbfd67d4ca9962d32b
MD5 3b65104343c879ac66ad65d7b7026d1f
BLAKE2b-256 9fdffb58862080ef8d8078511ba766cc2d7cbc768d43e65771d263941772cd9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e38f6a3c68a03a27d54e31376ad1630107c6fb46b06c138f895b3ce2521c66d
MD5 acac0310c910f3fbabd84c551586fbdc
BLAKE2b-256 0beaead1c2ecd1c7f3b924ff35f2934c0fc9d725c2e78fbd59b15ee3e7c7cdd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f94165ca0b750fc8db402271027b8875790df8eb92303401720926be2a547a1
MD5 502769de94b8cb4788792270aa84d280
BLAKE2b-256 3d62024d1d81b2ff1f3fe7eab83e4eb1301bbd35e1c300f402a1d737f37ee2d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.624-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.624-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 611a2817a295be649393fa5ede46984e7543c3b31bdefb0adebb63b7ab64c5ea
MD5 76ff2b4286ac02b391c5ee6bb0593152
BLAKE2b-256 3c496f8f073df7657a4a151506610223a9e83308fb499853ddc07c63914a5296

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8e1bd6052ff2bb28f8eb17a0e9fc95262317fcb623b098f708813263e638bf7
MD5 8d76a0a81bdfadfc391048c91c882f01
BLAKE2b-256 9481da75729ceeb99ddc2cef55397192aa73f6c7a92af2697849a0d5d5c06d23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4bb8a3cb0606f98cf3550bc78d5bc34ab2429db3651f83bc2989b39b22ccb229
MD5 3b1a168eba7ab257e561f9d3ce3aa00b
BLAKE2b-256 34b8dfb8355fe783ea2b1b27dc7789e801aa18b1f13e1e4ad1be8bd3f40a74b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a819f2b65185f9ab7ffb018fcc3845a73920172c4d6321b6f0a121be95559dbb
MD5 0c7a02afcb6a020648547cf022ed820f
BLAKE2b-256 4a7348e684160441c3f30d904d2f0539377ab7be5b4288d78247302836429a12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.624-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.624-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3918fa81f8aa293aac6c55c7558bb725c2ac765035088a317a995f6e5372f486
MD5 34d1b85c097a9d210f5d00e0cc890a16
BLAKE2b-256 3bc86e6a03f94a4a7c523f475f89966d5252d6e8d6fe833f52d6ed8ac9676f30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44a7b8cda61505401b4768170d3da444edb9aa421334e7bd1cc631ca7283bdd7
MD5 36a73e89ff71c5a3be3e54a25155c038
BLAKE2b-256 3bd89f85fc46d82396c7c30b50648265ef52d0223a1352d5f68d8377f13ca5e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f3acedf15917866f8bcccb7f2e831cdcc181155b9a683781022b08d57f14fbf
MD5 d144953df2fbdf7c33909883ea572f33
BLAKE2b-256 5688533637538a4f8b1daf1c11b06899c594d03bf364f6d1b1c0e3b9ef68074b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 85cf759cec314c924731f80f20065f3ba10b59259132b78ef38e9050c8c4aa4d
MD5 2ae7b8c9414b2d7e6258bd15083f8eaf
BLAKE2b-256 9f21aa7450c3e048de4b573eac8bd213927424b65ca3feb8fe753807424d1e06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.624-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.624-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68c42135376b71dc062537fed6296f18d6d1e22e04d5a6a69370014406ac9a39
MD5 22ca505d995d14b0f9853c530ac499f2
BLAKE2b-256 3c2d043f188fa644e47ab5c55654bbd154c1f11aa0e76052338997b2749d4c27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d18c2bba4a2b2f1da0738bc145b6162fcc758d7a4b17d5232b332607a4c5a00
MD5 950fb3993a6f265eedcbe67ebc3f7e4b
BLAKE2b-256 6e698b853bacc97a6575354f6aa7a31d07be5839df458febd2352016c6a75b80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4dd61ebb1ed9165e7a0ed2174a34c11305c23348eca44ccad769466b87d21798
MD5 6a841de89c0e3570adbf26c476651581
BLAKE2b-256 003740c1d3fbf614873a30fc9bc855806518e584d247d659be9cc935568889b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.624-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.624-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c1a457dd5a9198db9131a7b1aa3a885bfe64ece9968cfc3750f4f1ea972850af
MD5 e04a98387a20f615eb68e4e9815db887
BLAKE2b-256 3111ccc1b616a0cdcdbfd8346da307980d16ec72a07984b96cf6ebc271a882cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.624-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.624-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b21918c8ee48eda41d259abbe4edf25f720b767f206b26c3b2d763743ad0e27
MD5 7aecbad49f34c49765c00511cbfc0600
BLAKE2b-256 0b5f3d0368d1b22241e3e93f789437553113ce55c0e1ff8e83857f942f265ebf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.624-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8137aaa404e4753d9259028f290d757f832a3b6e3d27e89895a6b271adb3c84b
MD5 5b8c61e35f336d4e8b71fcdf409c805a
BLAKE2b-256 e894c4e1b4d35c3990b1e3f9cb903831d7bb3110f7a7621decd92e1acdcca3c9

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