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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.698-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.698-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.698-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6da1a2e08b4353d710eb3f5ac77a99b3739dc7225a8ab8aedcc81b082262d77
MD5 29b5ec91bfbb840c836566674fb2b099
BLAKE2b-256 4df3f7e247c6501d5a4b631c8486b89e6ff9a5e8efa431674fc52f38a5cf6ceb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1636595f2645e33c42b600a750756e6775b2d2af42f12f4f1be8a307e2c072c0
MD5 c29ae3557473361972ced537c8417aa6
BLAKE2b-256 a647c1284f14d618edd46d76cdcaa390b62fceef39ec720184986cce32627f8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.698-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.698-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df23aa4500233dd5b396a868bc1fec97e86592a89bd98734917137248e8f3865
MD5 15c13159f826c56bebeb6a80ae3dc731
BLAKE2b-256 33c39dbda6f00e1d517527a2014a90ce8bdb22122ce3097fc7f8b66624f47a18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42d5a87de2771ba094f8d83753e70f3267abace07a29bd010fe636fb524f796f
MD5 e21016ff70954498f3753a13496878cd
BLAKE2b-256 000999dbdb8ba06f770b237ebb84b56f1b4d9d0faf7629f02dd80d08c650ffa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a6b93dd0c77209e5140e7e06c528f88f3f499eece2d0523fe6f00a3221a6fac
MD5 a4aa7733bae427266b91678856d95cde
BLAKE2b-256 932f6959aa7b78707bdf034315571b3a5328c45e1d13b5c9aa2a70268dbcdca1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2381d00a28158104f0bbaebb16d79a415f52fd690795dd08c997c331d9fc34b3
MD5 2a2f226e5f985ac757f2f8c49b4efa32
BLAKE2b-256 367f73631644582ed6fe032902180965a4804186232cc8fd8ec7af7df59af68b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.698-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.698-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ab14d96667ad664a33865bd3e9314e016e89d63da9911098824ee02a4c91efc
MD5 0ba207306179ae6aad10fdae86ccb22a
BLAKE2b-256 25fcd22956b5bd9784389ce0d25879f43378cc2df073f075e65e14fc3050082a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96b9e81ff5a43659c3b3dbe45854d7cbef41bdc872b20c04b1ae6bd7cd92068b
MD5 656eca6a2fb6594b0f7d62c2a87c3925
BLAKE2b-256 ba30aed6b58bcda484ed376e852f7aff43a4a193e78979aa48d95041b983fcb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b0a98448f9202e1cd75a9b0853b4f58095c80949d63102cdae5eb0c9d841362
MD5 9320dad3c46e709c2994c8663c48be3e
BLAKE2b-256 b35f4c03f7b42bd3d037082a47fa9edc14caabd09991669dec4e7ab706601ee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d0237f8bc612e9b3749b8344d866849b759bdb04d773c356a7c61f0160ffc9c1
MD5 240ce0eb7ab658b41198d7b2b643684a
BLAKE2b-256 e6dbb5d4cd84adb3ef9bb25116abfbb7333362f3994a5f498c8d787aedb49ecf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.698-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.698-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f02f127b783c4c19ca92bade6e5838e92c94de47b4a5aea159a9e9a9499c5bca
MD5 ceac0a7ea627c2bfd2bc58de35019b9a
BLAKE2b-256 a145922a259c50a6b6a7895b8c54a71ab0bd1c584665707fa13f2112e9ef633f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bf3d248ab78846956468d1060e7075f8437a8afece5094a279a28ce6013b102
MD5 77a735d797cc438ee6e132f7ae79c0a9
BLAKE2b-256 f26ff241f2e33d20049f102e25983fa7be00561ce52c01a3fa6f49060e06e523

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8b57a83ad2830d5d5aa7120d0c6629ee7edd7155e59e60e79f052441e674bca1
MD5 d2090ca742a7c00174c558c6be054b9f
BLAKE2b-256 40fca5f094bd607e865d4306aec004d5a4ce82e726791644c791fee3fd5fecb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 53a4333facb9f6441e4a5a75a122d46d7cd8b41713202c6e7a4b92a7d31a001d
MD5 a30a7344cce074dbceb8b5c5d654e20a
BLAKE2b-256 f88a1845bfce25191ff9b47e06017517ac1d9d9a9cebd88e60845b781a1e6588

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.698-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.698-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fb4536376a4e8b075eab994a42ddd1be05d4e79bb7298b3f5ff7791e9f2da60
MD5 efa78af109a182323f93be5bce7f9010
BLAKE2b-256 8f3c69ef4d76f5499c31a8ef3cc6667eaa8a1be8ea58f8bcbf83a2d16bfc9f47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51dc0d48432efdfb8c31e5099bf1c1c94799b5bf847e33e4dce7ae2d0c37ff1d
MD5 4e8054e83d731654269502efd0d3712a
BLAKE2b-256 fa83d72d978f3d8cfa08ff66099a83b6d2e8b31c6be66eaf0686566a0de881f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 380f3878c627a80af00f2e5a517f171ddeb205dbf19ae120fc1e5e1845460582
MD5 e55f9f8d6967473ec1113d861f588915
BLAKE2b-256 68d0ddaeaaf31c20825045fb90749532aebc3e81e7dde62570707cd075366f55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.698-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.698-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 df629552cec22c657af7e953eb656f79cbebf6a81f9c33529c1c87ff817fcb91
MD5 911ec2d48ddc942a76c6841530d15e81
BLAKE2b-256 a95fa1bbc15eedb0f3698effd167295aa4ce3d4bfc2244d89d7a71267c88e84c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.698-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.698-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd59be88331464b0f08a7852383e1f6b52d8437c65615f5c22418b45820734f9
MD5 600bce1a4db427cdefc9e9e45984b61b
BLAKE2b-256 8b3ed21647d6d2cd0bffd5402a2abbd76905768c2c4e46d307673067d4114e06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.698-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f42a697f375c2705c0e5969b5d4d503d02d95762cc6c20b25cd0efe16b6ac33
MD5 41e51c36af1799938159d1080cc1b918
BLAKE2b-256 a0362ecb284b5400b93900a25bc7d06619d375fa87d0fb12ec9a6dd2c5bc957a

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