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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.13-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.13-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.13-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e6114dcfcacb24daa58f1c0a524fd4abd17a453b042a15b4e1d333ec0a110b9d
MD5 d7a1cd398c103c2d3c0e569713b38bdf
BLAKE2b-256 bf4d9b478d4b78e8dc5c859660a0412bbe9bbf8b28f6aca76ec5284a1452abf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2d36485a59287d725ea4f315180431681e62dc9d50087c9eedb3b65c916516ad
MD5 18d2acd544834f986e05959035fb5d6a
BLAKE2b-256 180e6582917359f0d5f6290dc29d57c6c66cfc6525999d2cbf7f061ad1a6d6ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.13-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.13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10063447e356f07aa90e5d31a497e50ef21309f5fbde071f7f002bf14361325b
MD5 dc3ee88d8a204fc97d688e6a8c1aaa5c
BLAKE2b-256 3af3b7c6c01073ca93e059ef7ce927496f29ed602985bcccb88112121dab78d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 419c1ddab7586707c792b23b0fb7c61f214ccfc2bbd0b61cfc7818a8d779719f
MD5 0bdcc461bd90649484ad63fa49202557
BLAKE2b-256 236bcb676853dcfb574be1abb808c178d8f19f1e6afe732c665f3493c1ff2532

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 55c3fbd0553470037c1343dfed36b201d632c6b81b5cbf4dee8f1dba28cd292e
MD5 6643cc7ee3958cdd456670418f61eebf
BLAKE2b-256 9e68c43b83d981c3804cf7ebcbe649b0f1f38a876dc58214965790053989bd49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6ae355578f80c93f4b927ed810ac41644384868721587380cfcc6e7d88a8e310
MD5 662b63ad2f3e3cb2ff940e188875bbb5
BLAKE2b-256 f593c2aec61e1c5e0ab359753709da82db35a918e07aa83ef3049ae3063d129c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.13-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.13-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b785f04a2f94104b38e657441880d9adbb2968162cf4e5296aab2d27d15da84
MD5 213b13c8d517ffa96afb11950cb84eca
BLAKE2b-256 4681bd5c0ccc06a524923526c0caa97db2c0ff1b51bf0c55a06c2b3764c5b27e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e635f0a6b1098e2b4cc4aa19dd0f570684284062f9ec738d8defcaf13f72fec
MD5 d0f3afa3296868efa3c728b139ce847b
BLAKE2b-256 0da7913a75a20fb3d6d5c3ec511752dfabe0edd32e25a0ccf9e97a24768201b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4e69dde4a91376b56682b7a58ede7a07e3cd3f2e274f589ab0a9cae2f2086194
MD5 f4ecefec4c3da18fc042a3747bb86321
BLAKE2b-256 74ecb024ec8168e72f4f466c5a8a4b529410df5e1e8af014bc30beeb50dfb0e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc5d70bfe96f8cc2c92ea9f81edd5346914d415cf0d68ce43816fd6729ede775
MD5 7bdff9cfa31e25a1cdf672e4f0d5e614
BLAKE2b-256 feb255cc6732bb86be39017dc9265838023e80b388a547d5719fa8641587eb43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.13-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.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ba0b25559cd2ea67fea2b8bdf7234caf5d9d47f92158255f51ed3360b92bc27
MD5 8919351588020a2a502a9ceadf76ca72
BLAKE2b-256 e555f38db687de02bb6442a258a61368fc8ffa9215723af6a20fef259c5a1c89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3de124e0a28e2bf53e26521c67d8fdc2adf231163079a6d1957c308ccf05d40
MD5 317ef7efd0e3669225fcf9901fcd8344
BLAKE2b-256 e303ab33abf152fbc629251231ab16d90de531a02f2bc3f4a9cef5d58792ba0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 10fc05fdb7f42ab8d39bbc64f0ab9bb4d62d0bae4e36c0b5faed21852475ccc4
MD5 b5ae54ff93c4b4e3aaf8423f6613c1ad
BLAKE2b-256 afd4b76813d9c96b6020c960084c12c1d963e09ebfbaa769301d7d354398ea8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9a1390aeed4602391a93120f62c07b6ab782a40b83f84e63a4e0d9ba46077eb7
MD5 e1a398c24608f41b537de9e8654d33ef
BLAKE2b-256 5cd0d324b38449e99c96531d397a5f7b6aede282e6cea6c6c343aab70ccd0d13

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.13-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.13-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b81fec41a845366635750b0dfb9002070a27656530f3a412e299552a6e537aa7
MD5 5dd90f1b88320e7b6cfafed2b6051043
BLAKE2b-256 9c0ad224ca14a1e170280e98f51ebc34401f2f0120180d8e4e12908d34b2a695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.13-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aac787bc55549350ccf42aaca2f6105368587b6798eee9131c2426eee0f685a2
MD5 86876b39c883b66eaaf9f44131482abf
BLAKE2b-256 6d002aef46c9fc13414246757a9943abfa0ab5a10fdff425da48a86dc2004e70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3ad965c866caac691c38d54df5f62775f2a39e1c76aa141e3c7d6584650d86d3
MD5 7c3ccb894c5f1dd94ffef2dcef853e83
BLAKE2b-256 68405017486caa23cab88889bafebba95e9a788a49814a7336a695bb671bbbba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.13-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.13-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 369ee276e39e802fc6b84ed5cddf8c26d742982ccb54978f7fb063876aff93bd
MD5 3175f5903abe9ce911de226b3eaf7e57
BLAKE2b-256 2330dcf568881e3e8c401baf428cf9475f421246e77e6f236845ef38bcb0a7f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.13-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.13-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a1e172aab29a29318e20e8ec0b010fc3437e5c8c375f289d40eab31473c3bcf
MD5 3f60fc6c206a693c226b6e100d15686a
BLAKE2b-256 2eff33d94be29df595d6915633a76c7abec6f8f25f61aa3c7cbe9fa8595bd85e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.13-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6995e69b5ebd54311e72da2ccece3e9d551e3065aa82d819681ae4c1efdd102a
MD5 598bafae402633d86390a4ad3b32feb4
BLAKE2b-256 44c5183c4cb3f80c4d73f6f9e493c4cd7cbbef31adb9f59b04a86f4a4ae79047

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