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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.676-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.676-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.676-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fc1f59232663c63af9b51c396a33cbb9c2ebc6785c36639f258823d64b5e1ccf
MD5 c873902ac8a8146302c3d27f448812da
BLAKE2b-256 4ce758ab74d83089b634d14c29b26bd39f228e8d4529c02cf5f3862a9518d14c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c143f04d29fd6cdc8b68e6246b710e48d3c86c5b10cf72aeb6203fa17c10021b
MD5 866aa61f9331f339aa36d6de21237b76
BLAKE2b-256 eb3a9e32cd25604a88c41a41c2605fb8b08b619c773df272f82e48da73016f09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.676-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.676-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 977d336f038eb59868ef1626d3c30626e9b32940b6e2e3dded13c4d700b4523b
MD5 262415fc3f1fd0410fe32cae7a67ed8c
BLAKE2b-256 b8398bc5cd9639e34323ddf5352683ea33967a71fb95bfa6e248c9323cc2066f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b109ac3f931070f375c05d0573363221c9a14a0e8cf382b8bc88ee06fd70cd5c
MD5 228c865cda8479589b94975dc973e814
BLAKE2b-256 85f917767b71f7d3709c6b54f9d6623a21adf09016a72942bedab83ea0f49d5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 780dc2dcc1ec44fbe8b468bc5e0c16b2182ab18ca65d9ec714c8d83816ea7d40
MD5 4c3f56236a76d94eed5c01a811472717
BLAKE2b-256 07ba381e05bfe22234b462bec079396ce5b5665e263a56c430ad4c21b5c4cf2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b01aaa3829e0c7468e77bdf7de2b65a90b3b6ea40ccb382a1de302f8c70d7fa2
MD5 c1e22775c101e09e2618a0696f31db64
BLAKE2b-256 615f09ad18bbd91ba9a6965d486e21bdd889ecf2bc1ec745125c764a75a3cd1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.676-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.676-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ade3f27ef63737ef5c07fdee7da07a520844adc464b65df7f332cf070c69c614
MD5 d5a4be3a5099ad00cad5e35961222681
BLAKE2b-256 69e003537143f454a6ae7e4c9e68d14e66f561dcade2347116690b126d35360e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f271004c9daa535c5fdfdbf52af4597611ce935b14271c924e2b4665614d3c32
MD5 16a169cefa1063f29d2f5ad23f712972
BLAKE2b-256 17c3a26952b2fdac2c8975accd4671217d8301eb1494d230a01835aebd4a7f9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b85218ca4e161c12eb0ab91b7ec3cc04e4285cf84b80270de8196bc0bbe34bf
MD5 0717190b8598692f7ddda1409f3a2e91
BLAKE2b-256 f1b9dc992bb614c93e21ab2755fee29b7a7dbc579242bcda72a9f67f2a6823c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e5d6b624ddbc6d93fea1d2f4a5efa7b8c96b8b1e923a0070730be725a2ef7962
MD5 b5f45511f3d14ae38153d8c382dc52f8
BLAKE2b-256 4ca73c8ad9d81cfb21e4616710539e4981539dcfea9a7b3c54e98eb3849e72f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.676-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.676-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 984bdb884b0166f673647ee85af289cea419c2742a8e52758031215f005f5a13
MD5 898cfdbc5f6d25a143a94e050c6948f7
BLAKE2b-256 5a9c8645b6605cb04165fea5477617ee2815fd54d910ca534c8b60ed81bb8487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70041c647a24092bdc72bc1fba782a11d4acdc95d5a9c71770b8682724e26602
MD5 f151ddee238768f5333747ea8e9c3cd2
BLAKE2b-256 12babb99231a4ca4aab013c505267bd7a0084514047e6482cf0e4179a6796e29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1fac812b993c2ea46a2078a655dd3f576681d59670497efabf3bd412dc8a21ee
MD5 d076ddd1a82ad468abbb2114102db1a9
BLAKE2b-256 4bf17aa4518df345e7f52305b94e96c5900e65817836c998092deb7f2a9111ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d99968cf13f6a8d49d12e5f38911623d2c84b952e60813086c5bdad5be0e8ef3
MD5 b6b603039b1f14cafc72e01bd340964c
BLAKE2b-256 22f74e7285ead764ed73738745bdc5b1919cc74151f8436b4a0fda5e3e74ae1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.676-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.676-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64779e7f4db487dd97bd45a10a261cf9514a086b83dfc9d047a22d93f465d896
MD5 07a8c53020ee7522e4d99ad333a44398
BLAKE2b-256 461224fb7346c651f3b790ac22eb750e173a7625f2053c6dea202e7dd9b9a192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5f14fb199f40ea93e60e5b43d6007103bc3f6208ee9fd2514ac6ef49df20486
MD5 2b3e85d054522c06a32369492e6f2ef2
BLAKE2b-256 9c931b2b424a6d72e2d52883520dd7263b69f1d4566c6149903405046d6176d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 65f5c859071f5cce338dc791b97cce8aa2698c6b92a23783c88e519f0f317dde
MD5 5354d6af74bdced793d48364a7237709
BLAKE2b-256 f3ade624e47421e58805b9e0cd0a213a7c7d2f03b9d3a5b5117e7a4ef9f6ff6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.676-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.676-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d06e4824b92d40ce3b15739e557c658e9e25d66d0f0e769d3b09aef568090e4e
MD5 287b1a3fbb74482665965feca61ee548
BLAKE2b-256 2c8c374caa1c2536c331dd6911b7f46b1782386eb071cf85ab98f041fefd0cfd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.676-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.676-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7014930a729c21f5b5a214d1219cb95e70d4065924ee99d847cf81ec91f1a20
MD5 47ad8be5e3f68dc717ae4222bb123bdc
BLAKE2b-256 ec204ace90fc31bea10b2bb35bc1ececff2f3677a5585ffbe741e567179f766e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.676-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac1cf1085d30c609670a73137777232cad688ca5bbe8125fa14159c2dd66f69d
MD5 cf123b74b386562cb56ac1c1bc7a885b
BLAKE2b-256 56dc0407395055e9f03bac3cdf85bcd24a511d40507571668bf77f74d5e2ec59

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