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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.145-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.145-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.145-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 265e600cf4ecfef00208c35d03086db6158d2e5a40fbe6aa096610f3597ce45f
MD5 ac852af12d4208d900863b6570645eed
BLAKE2b-256 bbc3653c88575c19e5f4a424220e0335728a570f4cd58b134339edee3a267c62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b7e0915efb9d502ee1232703e536ede3335ac4816fd5db869f0304f63ed79779
MD5 1db4c370519c2b111e75fa3a82c69347
BLAKE2b-256 cdf0bc21e3b5abf742813f4b3a416c19c1b68848ba0926531a0b3066f23bb59a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.145-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.145-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f54478f29d084975925064f89488231256ec1a596c443490fbe787aaa4df004
MD5 c84e6a87b45284be2270d726d9448750
BLAKE2b-256 fe6153ec5d658526136407a08d23e45f99708c5dde6573a7eede60d2ee1388ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a560cbfdbc2bfdc16539b6d17820916de000f3a3bc276647a7021ef26ed182e
MD5 e046518077e7bb8c3e28a8930eb249a8
BLAKE2b-256 f218a948fead19132b91fa1d33591a275715f9a50576c965cfb155d7f7630512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 453d4b8cabd93af7d999c156eec3ebdc476251129cdf2c6e8205c743ef00ab0b
MD5 203ab9ca9403ce5e8f7377d886924e75
BLAKE2b-256 3bff80f7d98c9fb0e79cab368566b3063ab7155f6349cbfd8f718d6a08c6082c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cfdad7c8faa79b7d3c5a9d80e3e1f172ddcdc61d811d1d8f30227b4db576f43b
MD5 980e4c615eb4226c0cb0a33d3e91713c
BLAKE2b-256 5a141c2a6e7c2e5e17ed706a1353a602c5082a509b2fa0b85b7ff1fce9ffe654

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.145-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.145-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 537f4d70ef741cc3b41d68184b368add6d8db13757cc600d8bb2d8c6a73433e3
MD5 77fc7957babead7c37a9fd688dc5a7ed
BLAKE2b-256 70f5f0a33c1426ddd027708c18f2685db26aee3fd13e561979ea12ef56b276ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d988d016396777f182de7c86766216769aeb5844122107bb9e7edea635d23843
MD5 2440e567fdae834d3628f9b26f167992
BLAKE2b-256 24433a357642c01fabdc80b917df7190beb8a39658c443ee16be98492b956997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d44a880ffe2c43be51519af6fa59585a46ff10ef5607d8da904c69827f85ece8
MD5 5e7a5e20349e99736fbcfbc8262a779d
BLAKE2b-256 174320eab7803d6c47b8618761e76d5f8530619163d85df12b94a79bec57e246

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e20c604a2f68ff7efd5555c346fd98de38e21806a6894cd267332bd90f71a03b
MD5 7de8d30d52d45bb915de457a750d9de6
BLAKE2b-256 d301b2433c8f2db576d2f70a0bfabf2c870c442b95f822f29d303252d366cf3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.145-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.145-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c6b650488f72222f6b292be4811340065e66a48e3f29113d81339752c1270ac
MD5 7408f9afbba4c7aae39208865760c277
BLAKE2b-256 912de820ff88fee98f522d4ed32897e4ba24d266c04aa2596b02b4671c67a607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70d6864f3b1d2cb26d6347e2f6380b73aa91f1b2d9a88f49e459fb1e377fa720
MD5 7cef56bc065c7db109f2233bd9cff1c6
BLAKE2b-256 9546cf6eeffaf9cf863911e2fe1d2ffdf6adbcab3aa973ba99828a692e418842

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 448494676929a4ebcae7198adc041712e49de04e0fec7e3871ddf81965a31a88
MD5 2b19d98f74ca3d8c8ef1fcc41203a504
BLAKE2b-256 89a3a86283e41cb2d4082a4c7c35ef47aab8567da276ae1c526401a58bb19ce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bc0502e161f922c786ad639efce60d290db2daf35ce3e239a5467857cf258f86
MD5 be1a3e5939a410b6b51a26d38d729893
BLAKE2b-256 6187101a9ef4e93ba3b9d8e356ba807d338f8d31bc8770b988f9b6a16840c498

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.145-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.145-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 730f19d2cd02c92dcb9860c53dd84f987c876b23e554962890483716cabd6492
MD5 c86a3bb4339363e675822320805f3928
BLAKE2b-256 04f95381eb0910fe39a95d87993dd9a095fd8667f5051191f73522f053ef9fb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17eea493ecbff5396b647053e2022b2613e27c16bfca781835efd786531f81fe
MD5 9209c616aff7767ea60329517b6cabfe
BLAKE2b-256 96c284197191cba83d1b6c23f659f2990d9a7bde082c2c0fc7c52ef54d847b4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa6cbf864690e45fc81a310009efe4e31e748325f9e22066ce46fa8249980341
MD5 9a5a4483a632c7c7642e585de56d048f
BLAKE2b-256 b708c7dd8b92416276b9caaf38879eec05c0993e66fc80048ed2272ae0f750af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.145-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.145-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0eeaa768e8d2afba861cc6beaf94441708f46a04c56b3147e57518b183b8e95b
MD5 426fd9a5031e93688daf8e2986f2bb53
BLAKE2b-256 ed5a954cee187678e7e65784339c1a33ee5b7840fedd345fdf3d02da6fea2e72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.145-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.145-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecfe78f31c66ce60d1d9f98cbdd22cd1154cf1d5035f281edc56368430ca421a
MD5 fad39233d3eac6d520c76bc1f6dd46e0
BLAKE2b-256 b1887bda99f47281d3f957110a06c0e35abd38d5f860fec52589067c7621105a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.145-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9cc97fc3be3e05a8a5d3fbd60a78272ca26911d2c8d2d3357157c8b7ee19588
MD5 624fab027a948463f16bcc68f8845d6d
BLAKE2b-256 f14022660cef3e8d7d21030662d3d1e2d57fab871c875ca87e70e864d8551f10

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