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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.754-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.754-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.754-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 356be850c7c41e37b79865d8331d8f94b4ffff817ce3ed020a4e832a5d7009b4
MD5 20e248674ce91483365500be44dafc8c
BLAKE2b-256 51e46bded4080b1592a22c6a2f3eb873cb87b7bac13f7a2545bfb88ac0c9dddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5c540f8f0a075eb2a59e2725ff95a63aad1296f354c331eb69693d9a4b1f1b5e
MD5 485cdaa87a9d5c55d1652966399b2904
BLAKE2b-256 9974a1a23e48157b7a6a358296065f4acca6bccc5de26817f7de37f9f9c6e5a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.754-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.754-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6034d8497af9877adedfdfa70b7135e61c5cf229034c7bf1ee69e92ab4f2bdde
MD5 3e852f6fde86dbcfc8d78ec29881608d
BLAKE2b-256 994087efb3687c81de036f92aef9a56fa9a162703fa08a139531140fe3dc8509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c3438da729d3703f8a2031a36a736e4f38583bc2583748fcef5d5fe7a1e82d3
MD5 db21ee77365f4645c5c3b101d7433462
BLAKE2b-256 488465edb9aaf4ead636009b5c71dc053a005804e8f2306ef0e186fb5e0ba2e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0ff1ec536ad8a83a7d04c88f7c855fed584c661976e14f2e62d5559e20cb4f74
MD5 602e5dbf78d3af8326224576d9cc688f
BLAKE2b-256 53e925e67b81a613edc2cd4aad12e38089edbc744b94a9a07ce62bfd092cbff9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cd560a9f1235db9bc391052057837bd6f5b9888ba8179f82a50a2cd531cc44f0
MD5 c1b37aadea28be5ca4388cf3db4e000b
BLAKE2b-256 65365cd9a9f518cc9086e5a57e3d8062b1bf437f4f7d0a866ff4949178beb826

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.754-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.754-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c80741a2306f3fa6e636adf5fcce81b228d21c2f61d07ba964231b64cad1dc8
MD5 8e1c41dc4666faa9b122498658497d6b
BLAKE2b-256 de67461bfdee181aa852741cc847facdd475fe88996a588825af4d9f5a66d1d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4b62abeb5a5feb8ce78d8e9a89a4b0103e3482f6b207a1ef2c962644153253e
MD5 68992bedda2713fa43b5a1317b1ced3d
BLAKE2b-256 77b2c9123c82616828c9b22b7057650a798c28b1bc82a1459131be7f0e5711a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c3cc219a1c7d89a6bfa7eec814726b7d0f9a85909c0a11b14aa3f39d974adcdc
MD5 1afea62f4f1fb6c89663eae75c235b19
BLAKE2b-256 b77557f62f423f8ba3d5be6988ed620ceda93a9188f6d194536e1a3bae990e4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5c4cbe1097069fee8d39da130d549c2af86dfc45029c8b0089623f0c4a548289
MD5 8dc3a160798c1245f0acd44e5a49eb7e
BLAKE2b-256 daba626feb6b9db0fa14716e38a56c2ba26b85e8621009ec8eda0cf01da6d37b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.754-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.754-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e56166dcb892010f7cff5058d6c7a68afbee6b29ff08ffff7e468ad1c86bc5d
MD5 aa89c541be63f8fe91e6f66b437b6b32
BLAKE2b-256 707331d54d96f1533a320b26742fd2814175ad4014f01cb009cb09c5feefe7d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29f290fac824444b19244596dcc1c064610703d0fe8ef380699b21dbd7ee6663
MD5 d5886ef1ceac9b174ee8118c9fef50c1
BLAKE2b-256 17c670d966d27556905e374d87dd2344a91d53498d4b4cdf9fadf700a25fcdd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6f06e425efbaaa29a35da2a006398d6a1f6bff2c6106b3b5cb124c787b772159
MD5 9e9a8de9b2bc6815abde382986dcfa56
BLAKE2b-256 ab4f083f997e76576bf830d2ac71666d15c05faccd7392f714475497e2abb017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8dc2a3b718dc4baac0accc976b1d8660d1caf212fd2d1d03a2ce0ed95e4dba9a
MD5 200ca3ff04f7b34df72c6c46ae11783d
BLAKE2b-256 56188c5729b54f8673811281a2d85d511c8978a7fff86e6796da480297a72b32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.754-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.754-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a73773aebb0dd4953a7be070625071943bbd6939c2a467da2afd85533a7452b
MD5 f068e440cea3a4b56110bfd32920922d
BLAKE2b-256 e542971d18278fcbae0e128e56ee9e4eeabdd474efb3b04e931d8ae08914770f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65940426504485ab27c72ef1c940406d275c62ed763be6e1cdd4c1f49c93872a
MD5 f15b768c94c3f1970f63bac0754c8c30
BLAKE2b-256 f5c5dab4e82c98c761b120111b67158e748ac9ee356e4a2116124f8d670a3330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2255fac276f71f8a5d16676cd7a4993b9cd4fc57f8a21cf802917127eecff2ff
MD5 c955362b2ca63529e8f6f4143d55e02a
BLAKE2b-256 6357e709aa8b59da239dad1bd9c6bc3fa23e32b990e5e404f6d8bf1d821608c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.754-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.754-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2fcbd155a12b9a60aae75118edc04601c7490f1b882a52154e9f8dda8f3a9ab5
MD5 67c3a5fae1c535e1ce6d698067ffa255
BLAKE2b-256 01a6ddc6715aba5e508a76c16f4b29d5de34962468039b4043cc5b71c737165a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.754-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.754-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18150e6670c34e220a78671bdb2551f9ac48aaff52c19ac77e3d5dc0c454b06e
MD5 d98bea0fe85f401a7b2019af9a41f704
BLAKE2b-256 7ba04559dc5333c191eddc4e6430c82aeef40d03f83430f7870d157dfab30980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.754-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 526931dd18b5fd9151ce984eae4e74b040e8c0c7d003c20496e399e0f9663b2b
MD5 ae0d90914bcd03e477a5d4e48b281936
BLAKE2b-256 ee4f32f7d96a972dee50dcfe237efd2efd4d9d25ac74284293ce84591bcd4a0e

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