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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.59-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.59-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.59-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0c456c8a881f8a311b11ab96b6b90f03f10edff11e002b6bb2dffb41b533761b
MD5 24767a04534bb51130a18544ab8e2a66
BLAKE2b-256 b88a809e3e7e879a15a3fbbb3a794e7281aa881d8c68a635b981cc71d04d4d1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ef35bf4a2644bfcbb808b28bb913eb1d03e3b68dcd443b0979f3e9b8b1277f20
MD5 4f01a45a11308cfb5f3feb6a7e4b9c52
BLAKE2b-256 98a2030abb203eb744257a3ff0a92575f2f71ce8ddb983bcc30524a4a009ece0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.59-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.59-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7d114584b75cadb8532786032ba6d1471fe81b20d5d2a3c555493fd83f3957b
MD5 7e06076d99cf150b0d2ff2baa24366ce
BLAKE2b-256 b32b0170fc7b88895af395ef3607bcb184f94065fef0afe78e8bd747d746df97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.59-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e3570e46de67ac831102d38b481fcb20b5d1d5c8768105b00cdb20d518d1a51
MD5 fe71a161e90d515cb0ef8d8c688d7067
BLAKE2b-256 fe94192f391433a59a76dc21796cfce64f178f9ec8e526b694d6b67bd5d5bc5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 54a8ef8e2abcf355a48c1b62a36fd1f03874300e2bed4b1685cc344584dac122
MD5 b7bff4a1da75a0c8f53112fe1932362c
BLAKE2b-256 94093794e73e1ea32452dc11ba3ba116445cbc7ec5c97250006e21a5435babfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b71c8f4e2ebfe3b78f37a5ff87f69b73d9fcf113918fd7ccc266564690b49df3
MD5 568fa641ab603dc5902408ab474cbf58
BLAKE2b-256 89a6a13c6c4b4a804a6655ecad4e07d28c534c2f52e7d3eb8d40992a33b424e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.59-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.59-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87870f8753236849ba626cb7316d4ca90dfd7bd1bae8673deec0d18cfdea1617
MD5 0ad379df3704078fe750403ecdd1f807
BLAKE2b-256 c9587e2e5b6f3cfabd64fd40abb696c179578d120733c0265cdf54ffd7396f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.59-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85b925a2dd357064ea9c6650e1a95bd0d09a251e5217999bd8883c9fa2acc7e3
MD5 17eca8c6a0aec3055026b4a245318e47
BLAKE2b-256 e00c6f4d34b077ccaa42a5103a3d297960afe0121434cee6feab3212285692ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5d96d4a594d9e422f4bb5e37c4e0baa985ef90eae04a439b8ce193b1befca14a
MD5 22ba30b56f4585cab9aab9fe642be4ab
BLAKE2b-256 53cfbac12ba020cb005e8c6695d943254c7ffe189c5898f95eb2335586ad79dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ede37d5c506208ee7526b216852911840c7149adfcdcd0e774fc25d3d055b779
MD5 090b4b441966d585fa4d1ebbe1f0f240
BLAKE2b-256 54799a426acdf9ac3feb39273801bedb5c9295ed572fc06b7ab9da52e324b4e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.59-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.59-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ccd78483863d4af7d0fc94edfb40095ab5d80c9cba2cf2c36109b8ff30a9e0f0
MD5 d8ac0cbbcaf68b67a9ac44b21bcb63eb
BLAKE2b-256 d0cd59274359f51a2c95d42d603c9d09c992da9a45d93ef8708f4e880d8c6817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.59-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3d57b4bef164396b4d1d263fd7e6fd1d626da49685e81ad035c1787e8c5f0e7
MD5 b802384bdd4c16bc36eb31330b0cca5c
BLAKE2b-256 de7193bb52d716f6cfe13b6de1e2e1a102b7b27a276a676e2e2d300d7c46d072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c5cbe29d3f2ad7e25e4092d2d6d20c5c912fbe6f2cb6c3877c5a6542b80a5f8b
MD5 c9de8e6079dd09ce5a7a423db04b9b02
BLAKE2b-256 2a55875d7a4630178f72a37ccef7875b269d6045191e6b3773c9ddbec968d6d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 390664f3092567fb30702c3fa49540fb108e0843d4919a842586550414d830f7
MD5 933e21cf7d63ff075a0bb0734c884d89
BLAKE2b-256 9cebf37daa19cc560956bbb1163073643c5e7006d84a5a6c74237208a30ab505

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.59-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.59-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 086ad5c40af589644176e5db621166bfd585afd279f812ca9530ce7d3f4e055e
MD5 6a1e1a15a3bc4448e68d05a61c17f3b9
BLAKE2b-256 d7430ff55d8a9be8dbea3200b1a5788be468cf608854f0cd4ac33f9bd42e54aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.59-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ae0dd4308c60506b9aa681d98251085533d049b4bbcae4e38397ebbb1384dde
MD5 58fd5ab3ca3e6d2f7476f94d304a59ff
BLAKE2b-256 b42b4bafc6263332c673a752e65ec77eb2ac1050115b7c4b14568b878842e3ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 53085ba86940f9ba8dc5c273597cc01ca62a3fd48b082c69eef5c5f3aa720a16
MD5 83b5eec57e1c84bad1a698ab1d6efce6
BLAKE2b-256 bd2f2825c76c6e4c86b2823de03b6ed809f897a9c35ec9d958c43ac1d0a70327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.59-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.59-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 032283a05d27c36666ea48561ac2bf98e70111fa36972fe59bba54df726176a6
MD5 29bbbae025447dc0bdcbf1d49b37d8e6
BLAKE2b-256 7cf6cfed1ad90e82da02ec69fe1c6265e07d46853ed62f860381a9c17a8e2c99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.59-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.59-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c8b9e5b7db89659304756365796d25371d79902188f0117ae3370a9bddc6903
MD5 13b05ea930c340fd0da209318c2313e1
BLAKE2b-256 0d7d21abafbfa47cb7949b6e8385577ef83810f46c1036b21a19a0667ed4b8d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.59-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28d445351fc37198b35489f2245015852d2f0dd79891ea880f41702c667b4330
MD5 02a7d22393c32c19cbfca5732b71d8e3
BLAKE2b-256 102e8692e760931c861f9f22edb94560e061c33cffd21a0aa63183f2e8b7814c

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