Skip to main content

Scientific Equation/Expression Analysis Based On Dynamic Program Analysis

Project description

ScEqAn (Scientific Equation/Expression Analysis)

  • Dynamic Expression Analysis for reScEqAnrch on equations and algorithms.
  • Used for providing boundary values to any equations to make sure how far the input dependencies have impact on outcomes
  • Altering the x, y multiple times to check individual impact of x & y on f(x, y) is the ultimate goal of ScEqAn.
  • Check out the example code in repo ( https://github.com/Palani-SN/ScEqAn ) for reference.

Note:

  • Recommended for Educational & ReScEqAnrch purposes only,
  • Not Recommended for Verification & Validation (Testing)

Step 1 : Create ScEqAn input scripts in Input.txt

[P] = p{-10.0, 70.0} + r{-50.0, 50.0} * t{0.0, 0.20};
[Q] = q{-20.0, 20.0} + s{-50.0, 50.0} * t;
  • save the above content to Input.txt and use that to create the Output.log

Rules to be followed in writing ScEqAn script

  • All Input Variables of any equation should be provided with a range as specified below.
... = input_variable{lower_bound, upper_bound}
  • And Output variables should be enclosed within square brackets.
[output_variable] = ...
  • Otherwise you can write the equations the same way you would write in a python code.

Step 2 : Use the following example Code to get reports

Analysis

  • Sample usage of the file is as given below (Refer Examples for more understanding)
from ScEqAn.Analysis import DynamicProgramAnalysis

OBJ = DynamicProgramAnalysis("InputFiles/Input.txt", "OutputFiles/Output.log");

# For printing the results to console, set Debug = True
OBJ.Run(Debug = True);

# For printing the results to console, set Debug = False
OBJ.Run(Debug = False);

CodeFlow

DynamicProgramAnalysis (class from Analysis.py)

  • Initialising class helps to configure the Input txt file to be used and output report needs to be generated with the worst case values.
  • Arguments
    • Arg1 - FileName (name of the input file which has ScEqAn script)
    • Arg2 - LogFileName (name of the output file for the reports)
  • Sample usage of DynamicProgramAnalysis Initialisation is shown below.
from ScEqAn.Analysis import DynamicProgramAnalysis

OBJ = DynamicProgramAnalysis("Input.txt", "Output.log")

Run()

  • Initiates the Dynamic Program Analysis with the already set Input and Output files as configuration.
  • Additionally we can select Debug as True to print the current status of the run to console.
## Definition
def Run(self, Debug = False):
  • Arguments
    • Arg1 - Debug (If True prints the run info to console, If false doesnt print)

Step 3 : Check output reports in Output.log

  • you will be getting the extreme values of input with respect to output extremes as shown below.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ScEqAn-0.0.1.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

ScEqAn-0.0.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file ScEqAn-0.0.1.tar.gz.

File metadata

  • Download URL: ScEqAn-0.0.1.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6

File hashes

Hashes for ScEqAn-0.0.1.tar.gz
Algorithm Hash digest
SHA256 787cbe6754f5a36285f85bf963f89b48b725146cd27cad02d3470592ae89d3e9
MD5 3a2188d7b07e4d776c51957d1807dc1f
BLAKE2b-256 64302fa06d28ee44f9a09624c3cc09e134c7cc4afeb569abc6c7e2f8945d936d

See more details on using hashes here.

File details

Details for the file ScEqAn-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ScEqAn-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.6

File hashes

Hashes for ScEqAn-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ef1f3cf98400c4a98d04992ab1154259f770ee0be7703f14492a78afcf2d1cd
MD5 c2709f7dece50804444b38ab6e507805
BLAKE2b-256 9e21cd723cdc1638da05be41e7000e07dcba8c02bcb4d3bbe0d76e02032bd4ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page