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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.729-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.729-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.729-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 31e67865477af799927ee973487a509b91027733a511998d073bc58872afd31f
MD5 a887b43a2c9bfb5306b8a610844e6f5e
BLAKE2b-256 b25a9ae4a6f134e9b0f49869ea1c60ca3a516d031e324e3cd92ee27b568856bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0be74e2f395553ff9e4b3fb6debeedab75d01ed257fabc973082972913861ebc
MD5 6d0070b30bb9514ff7a1ae1d186917a9
BLAKE2b-256 1779a4370e5dbe0e727412b09069457a7e16a816a70f9d91eada6dd23528784f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.729-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.729-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a147621ef737e57a13cb580321f904ea0ca0ec1d43443da6fd439217c8dd65e
MD5 ae96f88d5a7687e9198cfd110838b98d
BLAKE2b-256 3b230d339393ea45f26fab8d80094644f7d04034f446486c62f4332423a97094

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6d2ee994daf36992b5ca13b9eac5ecab70de7abcd51e1a3d49401effc009ac5
MD5 b4dda2a852ae61ceefef31a635d195ba
BLAKE2b-256 17016dd00f0ffd22aebb14b16e9b5aa1396f973ec2a4490e4fa4e2ae3f3629c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ee7ad576cad2003ba4a4745c704709acd44984911e22ceed100299a4d7c3975
MD5 7baffd1647cdd137cb127abeb56aee84
BLAKE2b-256 bbc3c2e2ddacc1d772b709bd4cbdb0113990954415ce970393924bd4881ce2eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b2b4101d51bf7107693f3fd8f201edf744552deed25729f23d0398fa70621756
MD5 ae1132ab0a9bae6d3ce2500b1fead602
BLAKE2b-256 6cda73bb15c80462818f28c68687aee9389a5fb50031932b59f56ce75010118b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.729-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.729-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 785ac4c52ff62bfdd0d194b68b116b363c06918922eaa9223e49e776bedf036c
MD5 a54d842fd96beae391ae8f540c7c6ddd
BLAKE2b-256 b3f0bbbfb4268eb3645c4ed889bdb5f7c9dbf4c7c47e8d3bdf988b5f1a359f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a7e8d557695f6b002de891ff795fed9a0217062b931fe1b07100b406e6d633e
MD5 0610e664c7112b953bd055e7928c256f
BLAKE2b-256 637f47346c932dca6efce60bd8ef5b12e170a4c09e4baf3199b6b39d8565f304

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9a0c3ce404f3616dc8b92a49555ceb63847675676423d53382772c1bab011fa6
MD5 b15d2b32a2ab25ceecfedf9925b75834
BLAKE2b-256 5402af5c08cf5259c9eff1a28901cdff1bcaa11b0cbb162c106e8c050290c7d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f64521172fade2918ccf6ba6cbd43ee83617128ca6fe900da6798aeae41bee02
MD5 4a06421e72959bea8876bf3843e3d081
BLAKE2b-256 1e73b74527e39b8c2497fe2c0b072c3491809bae8394a42db0a7612d520c8f4e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.729-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.729-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 162faee6fb5059fa32aba0b1959e0d00824bceb0fab5486481c5c26ee71df056
MD5 edf0a772ec3bf8c2136bddd404708654
BLAKE2b-256 dbc922ea3bece0a3453f6fc2f97bfc02e04f282c584c0e2830c87889192f4d79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 975a67abd00b94d403d0f24118586444d6b5413fb028765f31690e89fa3cbf78
MD5 70d54c18fdd79d3281d6d6d811f8c694
BLAKE2b-256 fbff5d1944116db7224a24d3c77c9287fe71ac4bed5f0810a742cf063b7aa6f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0e5b6f227cdedd2288740a648313d330333fc4903f7a9840ab2774ce28f1529e
MD5 88c693094bb21a524b28c14e543a501e
BLAKE2b-256 52d99ccc3fe3baf34d4c4d1173e641cf08a8fbaea7a6ceadaa140f3e1b8d315d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 522c64b38d4b728df94ee121d397f0484124bb12a4310bfa5820e951d5e7d57a
MD5 e150bcd6473e331bbae5f437c594f2fe
BLAKE2b-256 9c1a2fbfbb17daa55bcfecb8bcd6ef3df245ef000628f88217a6ba14a7242eb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.729-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.729-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42ff0fdbf976de2cc402454a92274fa5c9142b0316ea8e0328c2d2b4f1f11adb
MD5 6635d86e544ff002e1b225fa49cc62bb
BLAKE2b-256 a046c608c097ac0c5567a8e38d95571dc9fdefe76dee725dcc04e9a9acfb4e29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fffb1bf311cac69adf3462633766b996ec023c00320c4a2ff7b915860caf3da
MD5 c2b65387b82f72d4e97e56303069be52
BLAKE2b-256 bd7179cfc8f71f3433dc2fa58953d70684d2452803659d738caedf17efbe2c71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 15168f150eb3acb0066e5267e66bf57f980f873afe275db733d1c33a39401cf4
MD5 086683422cc2a62f44af7a0ef29b7cfb
BLAKE2b-256 2bb9c09a60444366c0d154488a2c35d2397b027df89b192f2d345b361ed675e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.729-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.729-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ad14e159412176b9ee501a0d3fbcabcf12686112f51287240402fb392341d41b
MD5 fc5c6cd24fa8e05e68f22fbc7225fe6e
BLAKE2b-256 0c851d48729c94b0fb985f9fbf42dfc34f3e0d3371f7ccce80d9fa3a12df60af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.729-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.729-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c568df7b97f91e6c1c246e4fab615f0a904093f21461d6b421d22e1e3415d402
MD5 a76684c994bd922fd5f2d7ea3c6f708a
BLAKE2b-256 fd1fc39afebc3363537f46366813f76717dbe82c45c00f3756714d53db4ab965

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.729-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1672648b0888cdc6600f142337fcba5766fb329306122295eb4edf3d3c75fc7
MD5 8818b5a1ce56934d519514e104c8306c
BLAKE2b-256 e8b664bfb23714a3133e10afb0246796ab64e75fced5285366f9c35befb170cb

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