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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.606-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.606-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.606-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c29af72b72290c51b69acf643b583a9b896cc49291dc52ecfb35bda75d84b117
MD5 634dff92c09a814eec31f084da9d21d3
BLAKE2b-256 b932ee5b9fdf037c76004c6573b6b750fb550311bd37089dcd58b4bdabd57c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2d20c6cb4be5b55683f50474a35e5e13154d11dd9d713ee07b24033115b1eff2
MD5 94d65a89aada1fa175bb46a20d6295be
BLAKE2b-256 53a1399a7dff97d1ca25af88acd41d3e1ad0dca301c188d445ec23bfb99ab60a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.606-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.606-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6f957d3b0a37168571e0716a446efddc87c9a1e3870426a7c74ba3906e1c934
MD5 8b0c2f93bb6538211da9ca65a60db9a9
BLAKE2b-256 4c9af47af33dde2029d7f4531099bca15d5046cb440ccaeb53c6677563feb636

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbd483b1d494dee576b6f50e6dd2a0847e9679686342b66c4b3959aaf3005d07
MD5 591c690737d45f661848c589f5e41229
BLAKE2b-256 3e771ac069aaf0ca77f74ff0871f859d61ed410023edab7a37d87052e69838f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9187eb40491dd75a267e5a4d55f2cdeba009ded0d422ddebf92cadf929bd23e0
MD5 ff8cae335ac1b7f3fecd633447a3c6d6
BLAKE2b-256 25e21e406515e4274ec90f3caeb6cdbf31c2e0f163ff026582563f102d1aafda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7e2aee27bc7ff5e7fab3439a486b68abec0d5847a2811fa498b762be2d85365b
MD5 dcee86771ca3df97767edf243b82c066
BLAKE2b-256 55799618cd6babe02c5ee80bae2eed4c996887016ee16a23db5f57117abfb69e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.606-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.606-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 460df7aabdc4d416864eb5578205e270bc4f547d1413a7b11e4540d891e6047c
MD5 7a201591e0ef5c2de670a01ffad0b707
BLAKE2b-256 a5c92a235cc3cc1955afa9d82bbc4c7db977ea194681db9c9b782aa9f61cca4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3c23ae2160b40107becbefa2abbcacfb3ec062a2e4dcf2ed4ec35fe1eb55e63
MD5 147553d820106164f1e4c9ede9f8d632
BLAKE2b-256 7f68b1d32b4d2e9827431fb8d66b5dc6dc470bc627cb63f02325262fe45fd537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0bb15a4b8edea0c98941c2dc04f467f546128ef6e51b91c826150e409d9984fa
MD5 7917bb096983338e414eeb33526c3f1e
BLAKE2b-256 85ac63e3d3fc5b13de1168ad91e762484f690b4c9e9a8104d8eca923dfc9579a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2f953dc4dc74684a9094196631500e3f643f891d0e922155ec28f33a49067ea5
MD5 dfb0782c5226e29c61d9090be7f72178
BLAKE2b-256 13cc6ca67e9c5a1581c8e3a1604e1520759a6a4f9d35fd9793683671487186bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.606-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.606-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4558952abab79e57aafd7bfd3f00e16454d4823cc63a6bf5481076533e3bc950
MD5 f4323698430ce6031ddab973906f5747
BLAKE2b-256 1f3a07cf687aa4a167387fe79cc39004e2eca3f633bc057bf1135d5beb5e094c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 262cfae1f3e8bab8138c88961179fe63a071925a813a64d8eb9f3d096299c7c8
MD5 4b315f8d5d180d5ba34e609d5a143d5e
BLAKE2b-256 632f62e9cf91c52f43095c37c1bb0c9c5cca257d688d8b05215a840f72288c8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e721ee79dc4fd1abd87feb5197b12673e44c6f730ab23928da47a5c53c14745c
MD5 e8e09c4744044e8da515df32e86db4d5
BLAKE2b-256 5b87dc8c4b72707bee705b65989f17450fa123cb00330ab38ca1c5a35919ee71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6e90e54f417f52513ca533445ce67e386ee44b34aaebaea23858e9e371436e0
MD5 311c4f944a0acd2b7f57431093c19624
BLAKE2b-256 4a9840d10ad86b50c9879c0b53be5ff38b27b9aed29ac1443da203b3fe9d40b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.606-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.606-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51380cf0f8bb2b0ae9b3876628c593bfd70b5f1ea406b4ae9e327cf85603b094
MD5 14ed86a3b1c68f77636a2a29b1b6bbd4
BLAKE2b-256 70783e7dce844cf49caf04bab6b2f87ba8aeb4a0d7da4c215443132b4c9c367f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f0e0dccd353df516cd82587cc221069687679fafaaa487d9e0da4958318bb76
MD5 2affca778387b4b947dabc29a9fabee4
BLAKE2b-256 41698e42c2b99b8ccf3dedb2522d2a0a1aeb12a58fce4047542a221d9794c053

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d69f3b3c4793bb253d159c568c09921801df4d520e3778855602fa403a5d823b
MD5 b93c2d6945f9f43258507f317be7bebf
BLAKE2b-256 955ef78421d3bd5e6864158e372a97ecebf3468b4c52b96d5c8a4938ced987f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.606-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.606-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 34b29927064c04efd07fbf7deb5da06618be1ca8fc9c33f8f775813b6ae49325
MD5 c255acb7b3ff3f93066cc0f8c1b9d976
BLAKE2b-256 b42b8ab842fa36f86e587d7b2f7c93934ed721ae15986b9905342ce062839e84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.606-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.606-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1694367971e87a2ff66595558e8f0a9b633bc4bb8f080aa82f5be1ff885d907
MD5 0cc4830dd7ac7208d2aaa5e738fc4fa6
BLAKE2b-256 17b55d9f5a68e9f87c5227ee4691b71e8f012e753b8917412cccd919f57877bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.606-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 098f64d4e8285e161d2ae0405203707d248cd11f9af83a2c388be15102297fb3
MD5 42a6696650c839532c6c680622244dc9
BLAKE2b-256 f1152357072eb3085d3d38eb5c07241a31e97d41a6f38b815c623be03f90e2f0

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