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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.20-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.20-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.20-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.20-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.20-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.20-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.20-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.20-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.20-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.20-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.20-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.20-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.20-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.20-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.20-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.20-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.20-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.20-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.20-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.20-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.20-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6e184afebce0cf449f84e9f4772ffea07e99c08255e2052f8ee64a6af44dc25f
MD5 c7e065f2fe19973f26c0768e0efc0856
BLAKE2b-256 6fcbe1df375f84ef065373cdec9f4aee18aed21a4431e2b2f7c2612072988e49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.20-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 053629d9ab63152c5e0d429628a5dcf8bfd8d646bed37c1d40c2557483a1fb04
MD5 d6393c8617a478c4b83886cbb1297514
BLAKE2b-256 5e883656890eb07c50ceb0edfb8d71199db64c2e1ee233cd7bef5843734fe82a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.20-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.2.20-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89423eebf995e8b958a96a92a10d4e1a28b4c3e700812146353940732203e0ff
MD5 411af0b521f50833d8701778e3416c3d
BLAKE2b-256 08efecd420e01adc196afa9c0d386886e4e0f8f2cee6c6959ad23594728faaca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df163b9bed58bfaa4c93c89f1d3e2bf9728812c05eb02a377bdaf54a72ecfa2f
MD5 c91a2e0d36c5354a5e6337385b9c6272
BLAKE2b-256 49281fc7de992fbab9ca8ee43c4485852097c69da2d2eb8611a4fc394cd3ec2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 806cd7e6bddcefbb2d9e7108813f9705a7be9ac682d1aafdff1e38e6fbf84f70
MD5 3d1bf146a280843f33494d5c1c301b66
BLAKE2b-256 7f0cf732d37219ddae0fb9ecaa722ac568e75470971b3a403c9dfc5eb4d07a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.20-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1fb0df06101d05b41d07b850fa268b4c1a61136730ff3d0eb583718a3bd6641d
MD5 05c0129960e7cb72fb4afddbea4b1998
BLAKE2b-256 1cc99a209850bacefda3b4f68382e46bd0108a36ad9944a4b47137b4d2760d7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.20-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.2.20-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69d6ac4948299dc5bd4a8bb4ac63fe7cf29f76e5c612ab23a527c9c6176c7756
MD5 3036c334563f71ceb35a6d78a28126bd
BLAKE2b-256 f65ceff70a3f17219cba1b0747684801d430081d171ab3432217f24c486178eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ee72caf138d386db4f5ef74ff889d549264243f306f8220457ab7e4bf0998b9
MD5 254eb3c23d53175a417c76b00c61d67a
BLAKE2b-256 7048970b3756b1d5ab343039661f35662543d676932deb891c4a4f819c69377c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1fe0238b211b8787764570ba311dc0952b552dbece5c68e7fe302492005339d3
MD5 fe203d9f51ae330270dd07a7b5119c6a
BLAKE2b-256 b9c9e8c34e2d44a0d053746a9d0751647c3bbf130db32bf08a3ffd0478ac1acf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.20-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3541852d2434acb2a8da39a8844e64aef1ba52339504cef5fe82d9e545b03777
MD5 32fc67692729c4dbac70adb9f73da692
BLAKE2b-256 e439b38d9e2502b0dde81d8ab78d1b51939044448f1e1d72d2f8ec591d1fc27d

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.20-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.2.20-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a145e6c6e5378af876338508901d562f724798896cdccb5b93339475a851d0a5
MD5 6390aaaf2983b577a5c3ac287aca08cb
BLAKE2b-256 af7b2af810ffd71d221c5f010e34f7a10484eade8f6c38fefe0555b7730dd007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.20-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4b1169320c00029f35de5980d8e81ba52fd22a3a01caa7c656381a28861cad1
MD5 142029ddb631ad40e667c9a5bba61b5d
BLAKE2b-256 c817ca12a1a4a1d14047f0d6d33c74af0d38617031da1656f848045492448f48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d046c49bfd2495a89a3171ecbd8291cb3307b4f763d59e30f5dbb61546d71049
MD5 96252a7ecd3d5cce989db40ad02f7281
BLAKE2b-256 706b6e0362154f980c0cce82c8999db1b4ef925753f95ebb0ca5286c53401b9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.20-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 db8cc398bedd2677b6b5bf973f147e4b7b02e5c57d53cf693ad1d587875895ca
MD5 cfbaf82a24aebad51cdeb8dc55956a01
BLAKE2b-256 8064d68cb9c2d45b2bbf3e520a518a7eb5f612f1abb00330263c1e6bb7222850

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.20-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.2.20-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46391bd137f70a31f34e1468f0d8b1a578e43ef9a86dbc0c5c66be3a72a6021
MD5 e3ecf0ba8e1efdc4c340f60d1d83e99b
BLAKE2b-256 ac81b277097462b2d67ff38745527e0e76a0f1a39352fc58e9c2771253c1df71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.20-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e07c4cd2b66fcac061b1d28d03584ad83396ec51665593cd0e70e148fa87798a
MD5 85a0d5581994fd31f7ede22fe590ac92
BLAKE2b-256 2245a83a8bdbe21c8ad7ebc1d6702f3ff5c1d48709316e163a7858116243a609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.20-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5239b133aae15ebb98bc1df6459d80f37381e5af93ed1adb26f852464127db77
MD5 afce4b058dc065940cd6d4f2e05dda84
BLAKE2b-256 a8521ffd50155797e5b92c124100e5578a3dd71f709fad663b3f2ed9a48894ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.20-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.20-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 579aa7f462b9e68bbd528e02e030b13e7a84b00d21387535788f7483ea744f87
MD5 3863353c0294810b136baec8eb1d29e0
BLAKE2b-256 4369a4fa79d83872d4f33ddead59feb0deeadf901081cfe8128ac6a31087577f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.20-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.2.20-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06dc0f82a30c7fa5788810b003142506d22cb907e3539b6ed01a5adecc633720
MD5 3a4290574d5126e1d620b50c3fcf78e5
BLAKE2b-256 681d5874be7b69cd982e18ab0a396e87bf9764e2bc502fc75c33e178a0f14b2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.20-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98bb7becf95c46c83330a875d8540d9732956e7d523fc86e3fd594d4dbed2b99
MD5 b4be20c1c87ad99b74929b114f3b19b8
BLAKE2b-256 7844385d92ab05767c08f2c92c70145134cb3ebe1906670fb9f3ed33ba66e85c

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