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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.767-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.767-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.767-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 812e19c44b94e2fa76db4750b76ba7d4d46cdf5daf1ebd6ac8cc4d3aacddb15e
MD5 7e09763135ed2a2af7b64f7ef9852bc7
BLAKE2b-256 740b1d9d4746670fbef3209e618daeb2f614500cddc8521fb9f5ac57b96ed670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a930b43334293684312db95257b8bb46c493682c67a6edc95b3bdd1ee463f656
MD5 a49b497fe4ef49594817787b330f9a2c
BLAKE2b-256 58ec22dbe9c4645dd7d124c350986405f56a5524fa588d9ad9dda64ce55c4ea3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.767-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.767-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c33b701846213c136e359d3970fbfb3f20ff9c530f9297602b7b68e29dfa507d
MD5 dc73f3db7b5e63da9afff8fda7e603e4
BLAKE2b-256 5911b4db1e66b7999d92aef66f8978b067ace97bd56f72ede347c62111501803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 100e52e5b790f147c579bf45943df939767852559d467c87ec3bc9c53c8b5885
MD5 3db94d02a2503f7efcc718b53d170809
BLAKE2b-256 a6392a1b2e0d385a98c44dce00d359821b519b38d0d0f46c926eb326d7383b38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3513bad3059509e6120537c1d37f3650c6f8c1e5f1195d2f21cd88f916dd9c7
MD5 69dfb567efe5c61fbf5090aa7f44d99c
BLAKE2b-256 580210bb4c118fd5e22276b38dd28836f4f5c3773bb8e560dfa92895185e9ec8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e6ca850d93f78c2cf41352558290ea69d0df84f314a5662e9c7cc6199026f05d
MD5 6103a7f7a989e859853759d1ce84b11c
BLAKE2b-256 3184ec8b25eb0fefacabde7d711a4290130112921164bad9235e2175aa24fd6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.767-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.767-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d5842d79debfa7878013eefa5061b2ad6d34be1ddd37922fd1618991bf24f09
MD5 a093f1b7a93e879c4535bfddb333f9bd
BLAKE2b-256 6845137f336185394a0b9b96fd7ba63b85eeaf9eda5f8a067eb5753967f5a621

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61bc88eb058d4b343be32a3c57073c17482ba125ee7179f6d531f73e99b9cefb
MD5 20d6ac7f282cddb8b470f768f033b999
BLAKE2b-256 c9b44167ac1d3da614d760ff35c5cf5515aa37b60773b49ce038e3812e8d7b55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 676bd6db04f651af2e6b7c8d995e4671c437ab01cb324d1bb2361791472c3045
MD5 eb07e0ddd4997f15430563e8d78186bc
BLAKE2b-256 c1b8e21fd354593f06efaaa223a98db70ab52a5c4cbc5de8c563e8c8b4fcb785

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1cbfb944ba004a944d137753848e320ae42ff22e85d6513511edf596143458ce
MD5 08e6e61594645d3b397ccfa15c8c2d74
BLAKE2b-256 3287383d0673f8e563f24841b6f18cd5c8a1f3ab02b13021425c1c89b1bdb78a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.767-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.767-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78597b80c288c6e7236f613983138b9608948a3db69881e78f9bb47a8c71626c
MD5 e3455009451ca17b07b66fdae4a59828
BLAKE2b-256 d96172ddf1ce4dbf645925918d7523af1f3f637e2ade0b3d860c60aa3366e552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10316af4588d284ac73a64f12735334406b382aa3748e4272a7ce4379ba01659
MD5 bd14ba0c8e2f582c986b396063d024de
BLAKE2b-256 966b1f39508e6fd2dc72da8ce525011d6bad5aefe62d1ff5912f5c8e7108115d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 219f95449f17d5c0c65cbdb8f8de4fd3bea6360a5d8a729fbc2fcc60a8f8cf1e
MD5 07f43a0728420c5aae0142450531d789
BLAKE2b-256 5646f57544b706036dc07ece4a52fe4ccb7b3bac07335b365b941337de8162ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 377bda612d6326e847a3824dfd8932f0e930fcb223ab3809bba7150b2a647dc7
MD5 e77b1360da6889c703e891b3c7b5eaa4
BLAKE2b-256 a87b0e657dd239526770fe74ba0764bd43bbd5757b2a38012e35be2b7fae9852

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.767-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.767-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 159516d4a9fc86897b1df2d874771d61dc316b2ad1ca74df2e7a6127ef906705
MD5 0e05b708e05e4b2642546f58dce6da9d
BLAKE2b-256 fe98343ff8d8f166c55e430e1e70cddd997997ac6403e66797f8d68a77cf6241

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89e9708ffc7a143a4c2ed723985d9f0d8db1993b409f074770e639fa41f0c992
MD5 37c52739036338d31f3d24f2454131e2
BLAKE2b-256 959837dd0ecd28743b49e564809e449c21afe874bf5a828e3c1cbbc540b5a7dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2ad5803e83d1c8dadf39a13022b04d01ad602bcae9a916a0738d5b6404d32b0c
MD5 8666d39eb6c9af1c0f7e0ad9d2d5a8f0
BLAKE2b-256 5f74e06cae0b4acd9093fcea3024ff3d1b3ab50a26dd4aa84864d4c3e4d01f27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.767-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.767-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b891986642d940d4ab4f5cfce7ba3fe10e7a7c4777d0643d81a7fcf8f8774411
MD5 227158b4cf9000355c7343cc6778ddd6
BLAKE2b-256 505ca916e2e56c4fa3480bfa8dba4dd5ecadb858d2959e4acb5b8b017a6f5780

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.767-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.767-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45d54577bd89e4ab9ddea4018027e3931a8b4864dfe633b474b7b0a4cf13f254
MD5 3644c245a37c033c53a35b214b54b9e2
BLAKE2b-256 c33dd443ec12a1e48c725141b31633f71fe5896e133352cebcd0eb234eb8286e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.767-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 299a11fbb468fcf41239e0227ef4182e91acf11df09fddcc29cfaa7715290c63
MD5 b7d547f3f9966390c207820dcdb579df
BLAKE2b-256 b6f284e606c2d9e32bf27ed70c42e78277d3f60561c0779ca40725be30507f46

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