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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.613-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.613-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.613-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fe979fa4ea9bbaf121c36f90f6a3002cae1f3026301e581318f5471423abed87
MD5 2d2a002b9bbf127dd89e874978fe66dd
BLAKE2b-256 b2198c1cbc6b6751eed0e018fa697fa3b0804b1e3105c22d45bc2dc9fc60cfee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d4b673958b4c0e6b6c9595c985e9a460175a45a0c41fd94ca0b7b0fbc522df26
MD5 e70dd30a3f831443f2b850d50fd33c5a
BLAKE2b-256 cf3f034a56688037af79bd7fa8916ba2bd3fb4baa46fa22fd0269e3c8f448a72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.613-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.613-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f56e24131cae2fc0f054b9eccb732a36822947fcb816019484824e85f1fff693
MD5 56a5cb38fd86102306ceaad4f296ac3b
BLAKE2b-256 5777470856be2e5f471448c986e996908742c02eac126659caf6b489759fcdcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26a01d176d2fdf5a0d7e02f30590fb1bfdef4d3f7dec5f0fff3f33e579230c1f
MD5 c53ef3fb78d28f561b468f9d634a00d0
BLAKE2b-256 6816306525d0cc0f8c1cf9c589956ff389cdffbac715b14cde466a21934a575f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b68e38512c08c202413aaa2274bdfc7a15916c7c4bb211bce6afb84b881b75d
MD5 b24742bde8cf6f165e417532b27eb7b3
BLAKE2b-256 ceff220148858a1ee2518d5c75f5ccf4b936413dfba10bb1c6013335ab243f26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7eb2adfb038b2d9653039ceec83c0ce9b8a45654bae85d3c61183e31a37cf90e
MD5 d9963a8a4e40c2298024279888bbb9c0
BLAKE2b-256 9a0c293e7bdc7eba5c7804df731e36088dbecd393aa18d0f43fda498fac9004e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.613-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.613-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 754e545d7f3507e586ed4a7b8eef1e73e1b9b51169542d07a84ec17548f046c9
MD5 1ef3c60d5cc98cbfdda7e8e83d0014da
BLAKE2b-256 a3565d53bd67b068d7cc01fb99372818e93c2e04832d702635c5fa774355d806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f896131f90e73183222071777a9546d6a8595aeabfaa7b1350d9bed697602e14
MD5 413501c73fb99406f9d5323128cb0c6a
BLAKE2b-256 f6604c95374834ad6900eac55f7e32dcb86b31e0d8573eff9f8b3ae6a2fcd527

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1d74cfae5df58b74e127ff88308991e4458ea584052869b5524f5e08ce6ad88e
MD5 07cc8266771f576f506d52a58ce555ee
BLAKE2b-256 2b803f0b94e0da8491d7843a1aa545b722e643f47572f683c7c802436ee25803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5702e7e13b9e98c381bcdb730c3e573132ac209e00f3107851a47f1f350a68db
MD5 78355a057921e829b7efce9eccd3c1de
BLAKE2b-256 a5ee96466b3203de0d0d2e731168b457ada9628f234316c675ad383e3febaeee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.613-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.613-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e980dca61adb993f71e0623e545a1b7d5eb0c31062b65a10ac3b0567f5c4aefe
MD5 2d93315eeb79640b3ba2011d33bfd304
BLAKE2b-256 088216592e21036948ed6a7c354e2c39ad86571d7dfed1edbc4b9a4e3fee3624

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48562f8fa8168ac0001734af4413651f96dd4bf97abba0362c1bc207aadaa568
MD5 f4a2358a283d2dbc7c065d3b3b06b616
BLAKE2b-256 282fca191ef0477be7db16e311697d0078a9da7363d016e6c9c0a965f65bf018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9ebbb34060b07836183153f0eef06263ecf82a0971eef6c8c7db08e3c2bc1a86
MD5 4215e44b6316bd98cde6b0274f974a7f
BLAKE2b-256 e2e9ae355b8ae30ef252f287cdf64cd9f7b7240ff73b12a0920cdb67a564e3a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6d58de25b4db4b7b7639bc572c7c801a5c2a682aea802fe18a3ab3c401789294
MD5 aa6288aed345bdc69bc9ee495f376425
BLAKE2b-256 a06775951a10667134f482c8f3e6ed13673786e8ec4593402ce102425371ea91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.613-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.613-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97c6c7b708e8400cd2b21140f1960e28e11934c6da4f193e0cbc2122277ca611
MD5 387d2ff187b34312a113e8fa035c0b5e
BLAKE2b-256 c4a2c2e62a697c1e4216a81299f4e1bf02d1339f0207349429861d876a8c6b85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef8b41bdb4211bc7b1164fda0d656c7648cc955eecd367440afefe511abe1815
MD5 488fffebd19cc0484ebcd974df997e05
BLAKE2b-256 35872865762d3610e5ffb09f013a43c5ae1058b006a85ec57b50287dd0235784

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 064695a04ad8d74057ac010ced2ceedea3513861c1e9e18c6754f951f8ca4d5a
MD5 f0b0af58de97cf92fda5e86759d0bf26
BLAKE2b-256 a9879a88b27ce80ad0203bb99ee58eef8c1334116a049dd3855ffb85fc875348

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.613-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.613-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 aa858c3399cca80e962454428b00694ec1a8cb0750f32e06af8c67785cb64cf3
MD5 a702279c924fb9250e2d442595ddf585
BLAKE2b-256 5e3093d303f713bb77ac69b3a0c1b638974d8af754e057abdb6e008aaf347db7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.613-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.613-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d84e9f5a72a2248be22712a31960e5cbdd86c8658671c4f10e7ec2422763627d
MD5 96e8475653631382cb86ce7b63b36251
BLAKE2b-256 7e3da335526d6f5c93542c1feea5fdc665d8f401dec6165158445a71ec0c85d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.613-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 639811829170b3d272892bd537f1192f0e0217637707914915f24b15bd57bd01
MD5 8aaf749f7ab00ef89bf518e4b1e88631
BLAKE2b-256 639ab5c26d665a6e2a7888fefaf92cd103aab8cf53bb791b366132c317eb0f0b

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