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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.849-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.849-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.849-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bdc2199792f4d3307ece2065dd6cdd7ab8b24c6500dff0b0a154f62221d5545b
MD5 ed962868923b8d0ffeb3cbc1d015a7ef
BLAKE2b-256 87f5c6fe37afee8b7ce9f225a3bae11aed2e7a4794d92bc1e648583055890d16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aafda4d50a51e620db06625ff1cc840acf31b52e8e990bc3825bdb015d75558d
MD5 14bf6a2f91e5fdd63c82835e3a7f3be3
BLAKE2b-256 250fef8ea848b1e8552118d6ae98673f0bbc3d64d8605bfd5236e62593c9e67d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.849-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.849-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65746ac88dd39cc702a0d58b5cb9a9ee16f8d45ab74a967b377557530ade2114
MD5 a1cfd43fe75cab0cf456b07847bda13d
BLAKE2b-256 9d5671ba873e62aff5bfb9e11ecf7b7a4c01b970c7f6587f01a960dd4eaff902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eca25f0473cdea95176b01de146a799629b7c97022ea2cbc00ef6f4bd248c102
MD5 07444f458f499d34c03ab9e5d0b24e4d
BLAKE2b-256 9fb4c7c38f08917099c7d8ee6670e64f91366e1310ca9d8e47636efbdfbd6fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ba3b82b6d8eeecb44db4d258f91e8c3e2f20f7bb5ae91cbcb9fde3e5dab8699a
MD5 c2d4a0b55b231bb36f81e5a23d44ed3a
BLAKE2b-256 7f49f2f9fc09f0ce14012e3bbaa3c33bcb939398e9b48bcaeecd9cf110984ac3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 20874ee744039780eb3dce806ba498793e449c99be909dc9491e4924592160f2
MD5 f4970a596b67064879274960b64d28c6
BLAKE2b-256 3e7bec68bf384b3973173865e19d52db2497fc02180e2efeecde8093068cc8a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.849-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.849-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1502756490fcce85fcc08ade0abaf8fa4905ec4a7c76b7ea4f0f2dd40672b678
MD5 e10915b0d75b42b116b583d72345d05a
BLAKE2b-256 717b1700f043b7b530a9a532a347f4f263ed57c8e5913f7084daf4af94f6d3ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea1ce4049f6655bb046dd67a514a430356ba6e1d18982b027fb1fb1f32ff27c3
MD5 ac0fa0b03fa574615e82271398450058
BLAKE2b-256 3ee5678c2c4a5cf68bb17d42f51e7ff1461f6127960ce2a466752daa82ab6fe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a35b5db1ca8af623ab3334a3e52d87265e4a279acefb1ec83b0d43db2475fcce
MD5 8bf2ec76d9ca751d2a772079759293b7
BLAKE2b-256 927fdac8f0206cccfb5242538343985ce853f7d99d723006fda19c1ac47cad9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8418b2135c602864d284bd444d650a600798182a4e09b36da4c18edd279e3dde
MD5 aa27c875a0692e965580049c0a7c2634
BLAKE2b-256 a3c0e85b0bafb71d0929e6a91d9adc747470a97f0cb79dfa95b0c196065badfa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.849-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.849-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aaa3c885db789824bdf39299b0b3b969f51e9041b4d1f299cf783c18d71fe032
MD5 d101b84a5f642e88018e2ff9d8420fe1
BLAKE2b-256 47ade16c39a691fb118f9fcac2d8daa1bfc78eed324c32335ce8c2498321ee50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6de373af7bdce78a937b5843efdb66596b96862f91c6a745f69a9f323c536524
MD5 a4a269377407e7b768da78e26b2c3c32
BLAKE2b-256 bbf9010621e056622f6fb62df0948ae462f7784fb00eb3152fbbb1999b37a1eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c903ede117992d403919ffc2952c885a03ec89f06498e4ed0c7d44dfdbbe93d7
MD5 8b4ab0ccd92e62684c590576e436f116
BLAKE2b-256 4d7c3eec8f7006c3c5287531a85b42e8a171a9f758fdaf3e614f36d2f80db58c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d1876b3817b060af985f9c83a1cebf657b29d62b5b17c06767ce62f6bd411dc3
MD5 f25d7855b0e8ed865a37e54ebe7c8986
BLAKE2b-256 d066fb270ff6afd46f8d382656a6133c2d6bf962c2f2d7fc6d6c2f3c0ab4e92f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.849-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.849-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8f11c1965167daecbd9f9febfaccde9eae961c077639b35e823f9667511a073
MD5 e9a224721125dad16683d5099c0b3a87
BLAKE2b-256 8ae396dc10fa4e88b9d30b75574992e026c05cfde6e1c332164c526522c4e007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 615ea865481d28445fa6a5f83823368f0c9089062e28285e707f7892f4732541
MD5 1d48cd6a1faac374ab974507270d7572
BLAKE2b-256 da724b6810a774006975d9ed071d0be1a62e72b735e7a4de5487192c1dffc473

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 06a41f7d63b0eb5fd3e3be7493ed67445ddff19ac8ef097eae70020e1e324416
MD5 0d0e2af57a5a6f4abe0f34e65157687e
BLAKE2b-256 395029507a778db34a176176fb9d721528a98ef8abbce26476747a8c809063a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.849-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.849-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c63a41850b99f2e67d96c6e811a494b2932fa179cd75e5311723e257868d470d
MD5 15baab28a2a958e918fde1c3b6921e84
BLAKE2b-256 8a3ecd31a30e686137bd311554ce27bb2d4e10ee0d0e79072b93c91032e4d0f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.849-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.849-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88d0716ddf422609a57125575859ad47f8f33014a2356ccd3d0054d0b56e0d1c
MD5 79a800d43bf7dcdd84eae9b1daf83fbe
BLAKE2b-256 a46a5f7429ed16e283f2e9c39b153f0db05a0332772d0a47ffbfff0a883afea7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.849-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73f5efd607a34ce1d2840a095e9dde21b26fef44b3fab98c2488a15656b01bda
MD5 691378ce31d629b11a2fab7063b0cc01
BLAKE2b-256 9953396d99e97cade3625d0e32127851af97dc4422d6c5808ddd78e4faf33125

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