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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.859-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.859-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.859-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 310df3628b53c2e88408f2f8a4c31aaa4ae5bbd17a4642cb7190f2ff835b5782
MD5 c4ba670001921703e6da7a3eaa8b0dd1
BLAKE2b-256 7494408f839bf80a88d10b48a0a3e5bd825cbb326b11171b7c354af515ba8838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b245132550ec90a8d2857f14c96622f68759abb8420b13c0f977ceb77f91214a
MD5 1e07f8096bc02efe3c6d0ffba0e754a4
BLAKE2b-256 e430e52c19ff507fef67aa697384e54b25be4ff7ec0217c123e371c5b3e9a48d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.859-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.859-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dca338617f53501dbe5089bbf28a8850e7c7b0ee7ed7d3d63769186dcd0dd2cc
MD5 d3dba6ba8a1bc967320e4379ff2eb687
BLAKE2b-256 399e5b27f58459fd2251671f13f92236a6f1abd68918df821a29a7ad12b19c79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb1afc626beb6b5962a12fc05ff935b786611fb0647c794b65a91d5717dde4ba
MD5 a731e744669ed74b78215b3fa7c4d35a
BLAKE2b-256 18544326ba530cf1209fa6d33bf550b5a14fe6c331bfa109b86e2da1bba101ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc029b4793e85f8123d3c367071453bef989aaa6d7030c9007d4fe3a6f765894
MD5 ee4fc5e7616fbe3a49082cceca5d66af
BLAKE2b-256 f1c89490b5841fb8725b9cd03312420db6bc53bd255bd76afd6db2167b0d08b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 235abea14d8f6bdc33f8d9aa127c7b52a4991341b5b8340e2b2e4d9a4df38735
MD5 ad3aa9d8eb17bcfe7ddd0f3a06673ebd
BLAKE2b-256 24da2f3876e1f3fb0de551ef2bc736c6e60d3a61cf49603510da808bcd0439bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.859-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.859-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d615dfc3205faeab07b0aa5e2caf11514fd3be814fdbc8449839ba047167563f
MD5 daa296fe31210ffd3a64c0516be07795
BLAKE2b-256 b8e6c35990d12b4c5acac73bd00eea96b4f01a1307b3df93e587ec8e398f10e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36eb1cbdc08e92359974db658119489578bee6b89d311c2ebe333d271df7c0be
MD5 78748606e42c24e0d74ba70fe7c41ffc
BLAKE2b-256 d57d3bdba737af1b1388a7364745346f5a4a57d398c3b1ca5010cf824c5d6098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8400097597f4469fa6240b88df9a009cf0d2203097aba54f1d255f6503a183de
MD5 031be194c410d2a0b5c94c3934ae22e9
BLAKE2b-256 c51d2d61ad23fe41669535228f88b985e181eb0dc03b51df3c7c5c8e4b83119a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8d49c46a7f1eb9ccc2f8582e2a38ea73b47253f8a2824464b97dbad7a37ce639
MD5 2f6b22a684f56128aaa69325d5f88849
BLAKE2b-256 19c4cfc238593c1946ca460a30a546bbf9be5af3271b79e70573262130093d3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.859-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.859-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98844b6ee9738ec22a8f744b99cc1375bb60e55252af9559d09027457733faa0
MD5 ed97ebd40458b5a91c0fde7fb1830a9d
BLAKE2b-256 b15cca186201a0c4f82c7e4f7a7857cbb76113c110be8fef27cc9c0a8bee7992

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e421f7bd3e2641e4315bfbf957d348671849d14a9e7d513894f7d4efb6c3ec5b
MD5 887f5a7e61457c519b0572b8d20d8c7e
BLAKE2b-256 09bc01e12313f5051c9d3c286cc7ffdaf95be3716ee25d9019a6b18673ab1f42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 61e5b7e32a9e1bb65a0defb61330eddd10d07bbf2b35af3197f7cd7eb448ed56
MD5 3861cd2e6a25adfadac2b94ac5ecb5a9
BLAKE2b-256 589f6fbec9df157a359cc6069d8b3a19996425f99ea1fd314ad75287a4eb163b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4766ca773af7fb5c4419ffaf969d1990d1e58fe3903b5e815a474eeaa385270e
MD5 7bbd701d6447b26ecdacac39f3681938
BLAKE2b-256 521e0775e41a8f5305534f756b8df85498838c4da998b9ebf681ce96a65b0b63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.859-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.859-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e3df6a6edf76e78059621655cf497e98de03cb200dbf92057b68f0f0263a696
MD5 c3300b1ef4531199887a99a938a18baa
BLAKE2b-256 4d533967c41be12f0f02c5fb50b1d1a5969632838c970edf24856d65359614e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6e227da56fcd6f6a000a64bb4adddcff03f0e6292caa7736671e10bbadb76bf
MD5 bfeeb4b5283b34d0537134327aede564
BLAKE2b-256 f908303863217d3fb8d108a98a2284a29d7aa5f7c0715ece9e32f9835a19ba6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5ef0dde769cf166db4a80de47b26fde563fcb3b056436ed978802194aab8433d
MD5 4fe45980228eb8b60fd61d19cbef2e5e
BLAKE2b-256 c2d5be9e2e59cab223178f0a351ad005cb2bd44196de9d839a2eb1ce50aaa360

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.859-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.859-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 13b89a0bfd6bf506304e638438413f45b19eec435744776b18db351136a8eaec
MD5 f54e7a652fb8b46fa41de945161729b9
BLAKE2b-256 cec456eaf7928dcee8b34758261a2f063b8cee0ed8b97f77a32c38f56072dda2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.859-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.859-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 720821a8eace92e8b95c01e51b838f8fcd0da8498c34f77b5b9f7e7ecf733ce9
MD5 de313485b0917aa707e10121dd1bd0a4
BLAKE2b-256 556ba6bf67d5bbd365969541b6210e5f222c1691655651ce33a277f862cb25e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.859-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c43f91745e43abdf76cc75f753a0ecf62576e980beba6077e5251160beff0395
MD5 93705438459d25959d7a8ef248cf19ae
BLAKE2b-256 81ff2f3b9dc30ee55bd85b113623533e248e9e396fae76252679b2351047b3e5

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