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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.387-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.387-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.387-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 542d15f0845ca98ec1f23276f62a99dd094289b9c9e287c3d72ae06c0a6f9906
MD5 dfacc2214052d8500faad38efc07f16c
BLAKE2b-256 f03f03c46280129721bc158f534dc06b0a3213c9981bb3854987304c15e1991f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8c394b5389c4589eaa15a08ded7deabc2556c6633d7fd019938b225a54cf058
MD5 f50d8ab907608bb449cc7b4ced0ac4c7
BLAKE2b-256 d1538a3c1488925c4cba79bcd78e056a1f44ca4eab4d8ddc81c40cb2224b728f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.387-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.387-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff7ac2f8a171d9d7ef14c13bf37c837c8ed4e74a02f7598f15a21df0f11e68c7
MD5 e7c10c43dd1dbf0f67ffdf911e6efa04
BLAKE2b-256 a8a24b92da47dbdcffdbdfe4badb93e8c540031395cff4f9a9c876dca686283b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e41edaf63bba7c3d71e4fe68df46739f70cda175e395e141468ccaeba4acad8
MD5 5e71755853bfe268f6897948c506ceee
BLAKE2b-256 daa7371cfa8e8e770dcc7368d07ce415254d7d968dc0fd07f8a64c9e151ce080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cbb7b89332d3887c23d43db20db439f984447312a8e9830046a10b0c9b685682
MD5 b36c6d9de06a768cd342f1c09f337c8f
BLAKE2b-256 57be67276dde4ca77ff786d12673d67a11923d7536f5b79f90793b19a40a6110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4713cf4b83727c89f3fb273129b2c3f15ad81c5eca283596a3a845e63f080740
MD5 eadb2e3426ca52f932ef8d4818cb1b2b
BLAKE2b-256 b5228ab4f48db2f70099063edcdb0466b2e5bb6fb1cc8002a7b8018761225023

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.387-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.387-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b304ea829eb8bfc45d984472a2dde06c260fef9653228a492d92e71e49b23f7
MD5 b052534dcf9c42c4e6e5caf4ba5c63bf
BLAKE2b-256 92e9af396ed81c963db48aa7e2fc607103bfcaa11fbd655f05e71da3f20b8686

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f515056fbb955cfef08bcfe45999076603de8c6ebe8dec9afae296bab93d5cd2
MD5 130e7355d9f006524afc0bd7e6064dcf
BLAKE2b-256 b2730d1db42dae91eb0934d7b879deec880af9e6febc2d8b9b8f1152bebd1f65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 11d44c7d8a1ff9b76b0109f6ba2e2274875b2067853cf75e4c8c0d354a154da8
MD5 cf7dda38b4f37fec13572e7ef28e8279
BLAKE2b-256 3127228b14de00257221545da300119272582d9b759732f118822801d3ab5789

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e65ec40dad378976368fa6301501207cdadee58aa41cfadb136d692d5338de65
MD5 b4c4635e328ec4a40d22f0ba323b3385
BLAKE2b-256 3f37a180f9234e55a53a812b278f4c4f03aff0e0622042bbe314f108a137eaf2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.387-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.387-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e87faea31a3ec774cb93821017ad8d1a05bd8dffa107d534427305bd2fce7616
MD5 284decec5e468b6f74c46a50f9e98908
BLAKE2b-256 f316db62e83b991936e02fd1d3d8480cd204e6850459110a759c45ae22c223ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a02f62c9a07ea43db94e818d475daf7b56faad840028ab6b063cee282a94bdb
MD5 26cac59a790c76ccef7ffe80726197c1
BLAKE2b-256 f0b91e376dc2667d3f8c5de291b3ce25157da57ebcaa16ca774bc3d470aee694

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7356555636a5229af708a6d719d4b0a9fbe26c768eaa37becc30bcae873a0af6
MD5 1858110b1ea639d055f799217c58f6e9
BLAKE2b-256 1b5b90215209bd0a44305addf90a38dbed1d5dd8fdcc8f30fc0fe230786faa8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2b25fdb0cab7565ba0aed32b72766305f5dfc892b3ffab0cfc965dc927a5a036
MD5 3271d961a847fcd08d75035e8e8de19f
BLAKE2b-256 00a52fd20d382e13268345c3c167bb2a902b69a37f62f7a514e2f945647f8795

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.387-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.387-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ca2ceac87063a20090bcc87b23c29c64fc980e9c39489649095be6684c307da
MD5 82bc37415a7678f3870a9e6f84cd75ee
BLAKE2b-256 df944174851e2a48c645a4a52e01b33f1dda6527834d58d2e2ff77cf0c080851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78343d2642c72cad05c8390eb9cd0675d6b91c12374d76ecb377e5543fda3c4b
MD5 6095d87ed0a7e2d338561a92f2201b9c
BLAKE2b-256 d1f1312924b82d59f209d67d4156c560e35ff78fcfb87230597193f4be3060a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db53355da6f36136791310009416b972dd31aadb343998e013f46c34bf286764
MD5 09fffe9cf98ea29204bbf8ddc35cabe9
BLAKE2b-256 611e96f8022f7fdaa9e30424a949fa674bf7f7cadcbfdbb69f0c02f28ccfd864

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.387-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.387-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f938bc3f37f2a31e2f31d1c9b1717506d9df7616d4c9a30af2a1bb12677b84b3
MD5 faa55ca515e751cc4f44fc666b0c8d3a
BLAKE2b-256 c7fa49d1d218d003b8f66641d54b57bb18c1fc0e28f29fbb5e0e37b9aeaab999

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.387-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.387-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f987cd6ab11b8e92d8d991adee72e4e49907e3adfa0e47e1702d6f5abc580a0
MD5 4208a66746fdf3b4fa29562f074071a8
BLAKE2b-256 c640b752fac1b11118c0df8fad0b97c810a1c7dc564e636a26e225ae19e38933

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.387-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f89a7954543ca24c1f20a035994e9b37a82a1067cde094877a86b04bb5acf37
MD5 a84eb43a0757bb48f7b1499282ec4a2a
BLAKE2b-256 5a2c3f7895d0af7baea83b910bcc4fe93076c63f834af5e191a9035d31455e4e

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