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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.70-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.70-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.70-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.70-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.70-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.70-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.70-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 785d4c96ad789c063536b0e092ca2f14068210d869be48ffddc70bbad4257fc6
MD5 0fd8b23755f383ac0b1d0d771247dba7
BLAKE2b-256 f56c34d6d876d76cdf7d35b9a6d007ecfc395d672968690b2331678fe325a3fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c4ac4958540b559fb56c417fe0c885c0d2335aa5c678295d9e313b10ca1dcf78
MD5 2d3fff51660f22736f8e6516e342e45d
BLAKE2b-256 f9f4e099bd551dac2d0672d3554f293ef7eb0efff6ff7b33ecb7929b46bade83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.70-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.70-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 302ceb3b802ddd866fa7d8a953d2eebc454f33b89becf5a6362b0a7ee3cfba7a
MD5 4d152557ec2f1a5a8f09a0e6b8909d80
BLAKE2b-256 501c2d8c2da2fb4de65e649f13b00c3853883f983058e78b7db8ebf0e028da5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.70-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 892e9329723cd0bb1c801ab9516ef54251457ed5e8e4e1911c1db004435639e3
MD5 8885bf99929b5b409eee93ca71d9113f
BLAKE2b-256 085fe1305895e34857541e0873d0c04d20830397bbc1cce9331bac9b43972920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.70-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42ad132a62d48371143c73312edf235f03d65695a4fb25e305a1fd8d2c47c5b0
MD5 d8dde75b74cbdf5451dcb881498dd32f
BLAKE2b-256 d142886a451c55f401ad7ce737bf474ea432e08ad913fba36a72fec0d19e1f18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ab5c74edd4070eae533a660f3d91dd6096a4cb905d34b79026996632061eecf
MD5 bcbe932dadd47dfd7a74bdceae3a8243
BLAKE2b-256 2a92793694589f7068df4c2afe09434b088d4febac6881ce28961983f03e456b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.70-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.70-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eea8c6fa7fe290f306aa3c2c84461d8f1f8b05e274a257424b8b515fab7beaa8
MD5 42b22bf367c1fae95f5ac20920c5b25e
BLAKE2b-256 52527632480e99fd2c495114c7fdb8298b99d1f54bb8037ca89ede7ac42586bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.70-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d824326520f785f419a4adc85dfaea19fc85469ed4c7cdb2f0df8c6a794259c
MD5 9e742af7380bdd68ef16ddd786e84f69
BLAKE2b-256 524edc088cdf814ea49881797e5bf526e959f94c829c7534f9b948b418590293

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.70-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 88e124e2df5318f5672783aefe67abbccd2ab4e6b7f68733529e4184af82b93a
MD5 e2a921f73ca87e3ca95fc02af9190bb4
BLAKE2b-256 f1f545ba341b7db5e1add7055d9d508327866c23b033d9cdd6e335c4fd380a9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 70b09654b706acde19c7c94c3935cae0574094582a50b8a33301a0f964cab7ec
MD5 6c843babc0829589c9813d4662a2339a
BLAKE2b-256 7212195275511ab7bd16ee2cf99683d38287ec084a523d1c5c3130085bce50e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.70-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.70-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9115c790bbbe1bcfe1b149417f3d38ae9c85f05d8b82ee55b344ca05d1631fba
MD5 321d967208542504a447374e414e61fc
BLAKE2b-256 139ac6f54827bca68112de5586a248e142412872e2b8b2ec6e208a308d62def8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.70-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03f36f1f3de5f66e63a2469585e2a6de7b97178d78ab2a012d8ba45281117ae3
MD5 c6724c109696bc41f02a32ef794f97cd
BLAKE2b-256 04dd068552f9864e280f4b5c163c2e3fb18dd4b17c2d55f56d212fd6fed3357f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 93c631aa3a23ffaa29bd2ae1b72c5740492a53afe88cb00bf0d0306e6c57b7f0
MD5 f1373c10d1f54926a3286db98531e797
BLAKE2b-256 e1a4ce994fed8ab02d61f15eee6f8ccbe2e932e589627020ad0809fdfeb26f45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8d6af6c506a594563d1226927110db7100da0653a2a8e2a1c514c4b52cc0e6ea
MD5 a57e72707bc28cf27013062dfef3f55e
BLAKE2b-256 8f651e6f93ea1174f6694e469687933c93e4540474a0ff9b7a2734e8c657a518

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.70-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.70-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b88cf7edcf6968a67caa50becbe757e3611c201f768e0873959ec37a626159a6
MD5 c1e01c16c973b6f758c6f56a2ed274b3
BLAKE2b-256 ef18e0ee6cc66cf0201a84baa59e9100c741c426e501d5b9cc3dd4898c6812af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.70-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f56449d977908e151ac4409836ee4f7b8adfd24db7a215b4d3f00a2e3d80b0b1
MD5 c42ab0cdfce44e304fb6d755c9c23142
BLAKE2b-256 e102accc9d201472c7fba8272434dfd6daec17a7fd2f065a13a2fe53f866b1de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 66c3bd85b8887073c2c1feb26ce83e7008179afafbb378c5c8e4881e4fa2b791
MD5 23eced7ac11a671c92932b034a000d22
BLAKE2b-256 cf67262df6bfe384ec6bb5f2dde0bec88ad6b4b61a907242fef9b426b6a38740

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.70-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.70-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e682912e57229fb1acc2eeb1288a3464a976eb70959d8b3ccfcd55f14df0c578
MD5 d8ff08f8222be445d46868aacc777b0f
BLAKE2b-256 8633679c35f4186f2dfcffc84f566fc7ea53b0d8662d912060ceaccc316014c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.70-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.70-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7fec6e8125b16dd32154700fbd0ce684ee7a40ac8733b28c8c20895c2591a83
MD5 ad0b15defa644f01c380e29d53131503
BLAKE2b-256 c07d766df62ead3f45610b164509265ddf8a13a9a6fcdbec09eba32a7e93f218

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.70-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea38adf003e835382d333c8d5515313c38385769606c726e061f2444f536be6e
MD5 48361711652efbab777488cb05fb8d1a
BLAKE2b-256 2f76c5591167745bd221bafbcbd1fa7fc56db936b46ddca8340ed805af3ec557

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