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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.331-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.331-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.331-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.331-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7aed05504a52d1ff85aece347ab9f3e0ad4abd54dc882fd11b0eff96ce4ee806
MD5 346d652cb5a7553b538e98bfab432374
BLAKE2b-256 29e6135ad41a210c420279ff5289035db85f8c42a88ef08b8ad4ffb50a728131

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 272666be9de066bf0fdc749eb8ca9497e4c239bc125355e8dc81d66cc7e3e535
MD5 26db443cbdbc45c238e43b2e9309ce8b
BLAKE2b-256 2270cc0473cdfce08059b9d0c4dd23285de6f21aaa7859d64673c4bec082e82a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.331-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.331-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d9d8dd2e0c0b6279e5c522964d6ae2ac8e15aaad1ef8f7cb5fee1dfe4fbdf05
MD5 daa175d90a4de6743d9df76a94c9d5c9
BLAKE2b-256 02497d2e6d093b625698124349356fb4525d735d66945f5c27f649dd2bfe5978

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dacb31fe4b4833ef737b9bfd790dc2a2011acfc230914a501b1a6aded48b221
MD5 7a27488217171cc331c48b525f848b00
BLAKE2b-256 9bace4cad05830bd43bd292fa9bfec38178c044cc661b3616e230819c660353e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7fd3b96e3deb5329387d19f9e8d0606354e9f7c7f83ba2be7b6198d561c5c018
MD5 dbb4e26882fd2e9cc2fed2184f086eb2
BLAKE2b-256 25afbed36977bf101c6ab031486bcadbc4924c2b9ff7b734750e6e148c4a9329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 47c578826f2ad70b2da62737704fff2d9aae90190f9d385db6853cc044b05864
MD5 b38e9a6b4e104c93227a59a53aa28f2c
BLAKE2b-256 d73ce3b26ad32284d6270b8bf7898ab99990923b630f489a141e31b7def9db5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.331-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.331-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d46cde974c6dfcf519d725f345be4ea45152e0e2362b9dd27f7f06496744ebc9
MD5 54704b9d196191a8f13d6746b116a5b2
BLAKE2b-256 3001a2efcf84829bb73e9f275adfe72770813765b2b0faa1ad58e9202aff654a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d40167548f61fb695c13a127e3363790426df3c1ea2b3bd6b1eaf84fcdea1635
MD5 a79619e16d4958a4ffccd23e57ed1474
BLAKE2b-256 88ad51d73842722e11189dc03b024397d419b29ff14ad50130888a0c61c60eb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6b20bb3e4a9bab8b77f29ba3dc596b69b89f1d9d10184a38ff27b4efcefc6c9e
MD5 bf660143f6b59da4e1d93ea90f3dd23e
BLAKE2b-256 b0e6e0b7a4f8bcc412c572fab859e67f2d026b57d67e908fc6b296d57b1507e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.331-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 65dea981ef091c93a9333f9e79fd77daa27553b92c673f8c8a7b6e36b4fbd65c
MD5 a19d4b0bb85761457e37a28a66eccb9e
BLAKE2b-256 524247aadc74c5a1e50152866b5ea6115e9e8b925570c2bc0ef16db7417a1835

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.331-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.331-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d445d922805a67225f075ce88c208808a6b7e818a2beddab609c2808eaa8651
MD5 b8def74dba239b71485a0f0aab6d4a04
BLAKE2b-256 038bf7102aceb3a455c8f776caf20fd9bfb7d0a2402e8377279bc3f2150d1387

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0c6f9b8931ac3c529c2cebe44ad425fb513a2e4096f075c9368cc3a3504211b
MD5 1f150bdcca196edc8a52a6521bd4b983
BLAKE2b-256 cb1e7265e4bf0b02be0e8111f66ff15e475a6775395758d215e0f4a4e2c96ea1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1b2930d16eccddb2801541a61978660ff055a45cf571f2a559a5e6d98ac79aa9
MD5 4f3ff4b29964cb41f204136a7b3c045e
BLAKE2b-256 5e28ccf304016f9a2fc664fdb3859ce9c1e2f5f3f8d154b18be1ae2c0dcd3aa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5565ab1adfb0d023c428282ae3735891f02591e82aeb810be9ab68e86818b404
MD5 62b738bc0c2e4636fe0e03811d794684
BLAKE2b-256 da707c68a131eeea2bcd02e8ed724520e97905ee3ae88668e8a1cd442f2c849c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.331-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.331-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31809dd4967531b320db73fe743002012f9ab03e130ccb24e5a895e9da17bc34
MD5 501bcc8c51b5617421cae299f239d8b0
BLAKE2b-256 32a3d5ba27b063fe8fb0d73ef982f8ec69566dad302b53c8e83e61ef717a076c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2de7179bef8399e441402bc0a86a506c8f2d23ce3ea5c31fac1f5460cf933c5
MD5 73c2c49ce77c3d91c5533e0b71b1e5b5
BLAKE2b-256 cdb028f16048a18cebf8191674ca667f41caf669ad449265db8d2eda816b64ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5abe862c99604d1b738bfc380a42d37b9456aaa0bb2025942b4143d7b4efaca4
MD5 70018a1ce1de91f5a98e96f073308b25
BLAKE2b-256 94201c3679a09717e117c15f9aba8fcd1caad4268ec46f8f17efc3316c0f5d63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.331-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.331-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 09c3cb0606a343e2015cd3fcfa55013289f17db282ccdd21530badaa3524a504
MD5 fcd23a02d4aed32f089397dba18f2fb4
BLAKE2b-256 23ae2890211066e40f11ee2cbe92256f63af235461b3f29ef70552197a2ac634

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.331-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.331-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6357c33c74958bc83a985cdf9419f8ab21b80a76a41726b593e9203269a04dc1
MD5 b87cfdeb2b36ef2bd67551c93761ddbf
BLAKE2b-256 be7779e7117e8444e8a83ef5b0b9046e0b3a33f04e30ce44547dace7d6be3a71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.331-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99b21d4825d1ab320e300fb6ec4e1379c32a2fbf82a1a34e29126033fe6155bb
MD5 6e85eb0393ee3bf06a8828c565662c0c
BLAKE2b-256 54865eea9c21b4089f5df46ea41dae726ab4228c432996cc7f53def5c1983b9f

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