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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.799-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.799-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.799-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.799-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cfeb80d8bcaccbbbb0a47b716cd664723212df0653aea558832307bcbc7697fa
MD5 a49b71213a08d6588b528b0484927c47
BLAKE2b-256 956e5b62fbf5e319f4e73aacafebbe7a0e896e5a6e22f771c4cac84ce689b85a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7615db7cc3ddb0170a9ede5f101153173f4656a3b338f8618257f67b8dbebf19
MD5 335f41806a9165fc71d9479a2b273010
BLAKE2b-256 4c99ad4cf0f551a7fac55c1f2832c4bd770bc84ea7cf9011c6ded0a243deed9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.799-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.799-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c00ced9acdeadfe89bb71fe85d6791b0257337dee5d9def4f28ddb41c90c24f1
MD5 1fecf72686deccf1a2175f33be1fe419
BLAKE2b-256 81734e712a8503fdaf2ae402612211602a1acab2075760fd2e622a6ef6c3fb78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d2e5e59a8a07dea16b8d33dd940f2cd300e9f3f94d18bdd2afccd4add46434c
MD5 e415b3d0780daa531d4818a1e8ac9e81
BLAKE2b-256 5fc8dcb71bb2e266d4af32708a79a281a49e835084fab28fb84f73727a291fb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40b3370b4897870ae07f011932ebbcd277e9ac43f7345f61c12d93f91c503478
MD5 3dc8756007dddae15cdb2f2d52741c6a
BLAKE2b-256 26419aa1b66e41fb01e3775c77eb7f92a599c44821b9fd245a48923e503ed5e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c27b2fcfa48a18b1e2898d1d974e06d348ce9e5d7b3ae708d9472e8ff0950aeb
MD5 32a4c5e3201f9205212c8e53846772c2
BLAKE2b-256 24eb0b9047c5cac731f38dfd5a9b195983a5839a246e4ca266f225bf53614d9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.799-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.799-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 313d2d58acc531cba3c68201a271c5bd26a6efefa037cb97d0401f9501589d1a
MD5 0b7c96e3e7f252a7dd8af3580b5886fe
BLAKE2b-256 b02081cfccb4ccc849432bfe268aede79784ef66829fe091df0745f6abe42c8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f1ca5c57e321720ebcb1791da49aff49e0ee1c26c0cca9bc1394b6f94d149ba
MD5 25104d16806842230ab49a9727fc26f1
BLAKE2b-256 4035944ae52f704f780c7469d40bfeb10bdbf9258854164d109b27acb2ad79be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76d680655f39eaa4072b357bcb4cd8e9d8ba255951c1a1cf56c800f4ece7452e
MD5 265af52a6cb7cb145bd2813a0d13ff14
BLAKE2b-256 3cc35b2b90d5f6ff66cbc0006380396f5e850774aa3a54deebd84349ae92621d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.799-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 319d2384b3c86dd08d8fafa57c84f9496b0e6fe77090a59889bdf4e54fc5ce45
MD5 af54157705877f8012274299abe3c6c6
BLAKE2b-256 01ac7fc40bd749f8f0a3fe22e2429854aa4565af2989a5bdd344abde6dd33549

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.799-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.799-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d2160db7a1f7115814736313244060645f47c371233e2fd3f4ea213dd12c4c5
MD5 12a3d15035a273f6397cc3f318bbdb06
BLAKE2b-256 adf03050ab48a2c68c6db20b10d7c96c4d1c7454ca9cc6163e5abf0ef9adc630

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917d4f594923d58ddee8c387ebcdc08ef047ccff9f4ee11db639da4535d5d538
MD5 9d20ec3edea1d3b0f39a7af0a4834440
BLAKE2b-256 dd70434ab9dd49a2f48190e1649704c55b2bc9bfba2d5a556bea65815911be8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1006559134206c1b9db371914b642e161414bd2e95c273a3d6bc64e7233f5d50
MD5 488457bf29958c110b2ac60ddfdb214e
BLAKE2b-256 173524d8dcefc7a6faa1aa12baabcc001b58dc3627d1d6122a0e4b455b5020d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 88a36f5415eef5c33103b892205daab096d6a66e1d2ef768828da0fc56a01bc9
MD5 238676fbeb735a5d8070e0de4111a1c5
BLAKE2b-256 365e578423200db3cf05f88d74bcbb329fbe92c020e45ba11623a18a9b40461e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.799-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.799-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a56bd5919e844bc69707fa340acdcde7678e9f9c87b6f58c8ee8ef3daa1949a
MD5 8f5a61fdd9d9619d0b962996f54ef041
BLAKE2b-256 772c552ab2517cdc630d838dc1395bb59c2e817f773d9619906fa53223067ee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7408b6c9858dc645b6a25ce052c3108c2d1c8b03e7e0aef299c6e533fa73cf2
MD5 6f96f8590762171c152ebabd81ca3d85
BLAKE2b-256 653cf40e4f874fcc62d43e11ea2a0404b306725955bc1d8d9744861d8d0ab41c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 19f72f6a4473ea005fb1d40f64ac2cc16d21cfc918af1dc6809bac01c609c530
MD5 35cfee9344dd708ee4871853f49bb333
BLAKE2b-256 713a902ac177359c2618d283e0b71f1f0cd6eb3a838c0ec2ac5824633e15fed9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.799-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.799-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8bcda96474dba1310d2d6d394358897c2bd669c19bdb942f2e910d42bd0cb80f
MD5 e82a76c4836a2f79a109e6a9ffa8efd2
BLAKE2b-256 26ff105c7f61319bcd7737993b41de13290029453b1cf1830edeb181fe4e6a83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.799-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.799-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6d1d992832e1b7193899722f1abb76dc1f7dc05e71b65966fbc4fb8352405bf
MD5 8320b589e9df4e258a7328620edd112d
BLAKE2b-256 c5d6f3783870d5abbe5b9259c8b39f6c5825e9fbd51d84ddc69415fb6020a470

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.799-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb77d12d18e38f61605514d46593529869c2be5a4a86e37d80a0e49636b8b023
MD5 d6cf3791a284a6d057a1816b5b6c96be
BLAKE2b-256 e18b53723b42c9a5b800005fd3da22faa2d8912a3e205e605d614106fe35d5b2

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