Skip to main content

Network module for APPLICATION PROGRAMMING INTERFACE - paceval. mathematical engine. Version 4.04

Project description

Paceval PyPI package

Use paceval PyPI package

import paceval

Make sure to install pip and run the following command in your project directory:

$ pip install paceval

or

$ pip install paceval==x.x.x //desired version

Functions provided in the package:

Demo()
CreateComputation()
GetComputationResult()
GetErrorInformation()
GetComputationResultExt()
GetComputationInformationXML()

https://app.swaggerhub.com/apis-docs/paceval/paceval-service/4.04

https://paceval.com/api/

(For detailed Information)

Code Example:

import paceval

paceval.Demo("http://paceval-service.com", "-sin(x*cos(x))^(1/y)", "2", "x;y","0.5;2", "yes")

Return:
{
"handle_pacevalComputation":140660720254832,
"result":"-0.651801782452278",\ "interval-min-result":"-0.651801782452306",
"interval-max-result":"-0.65180178245225",
"error-type-number":0,
"error-position":"",
"error-type":"[NO ERROR]",
"error-message":"No error has occurred for this computation object (PACEVAL_ERR_NO_ERROR).",
"time-calculate":"0.000859s",
"version-number":4.04
}

paceval.CreateComputation("http://paceval-service.com", "-sin(x*cos(x))^(1/y)", "2", "x;y","0.5;2", "yes")

Return:
{
"handle_pacevalComputation":140660720337664,
"function-10chars":"-sin(x*cos(...)",
"function-length":20,
"error-type-number":0,"error-position":"",
"error-type":"[NO ERROR]",
"error-message":"No error has occurred for this computation object (PACEVAL_ERR_NO_ERROR).",
"time-create":"0.000253s",
"version-number":4.04
}

paceval.GetComputationResult("http://paceval-service.com", "140660720254832", "0.5;2")

Return:
{
"handle_pacevalComputation":140660720254832,
"result":"-0.651801782452278",
"interval-min-result":"-0.651801782452306",
"interval-max-result":"-0.65180178245225",
"error-type-number":0,
"error-position":"",
"error-type":"[NO ERROR]",
"error-message":"No error has occurred for this computation object (PACEVAL_ERR_NO_ERROR).",
"time-calculate":"0.000264s",
"version-number":4.04
}

paceval.GetErrorInformation("http://paceval-service.com", "140660720254832")

Return:
{
"handle_pacevalComputation":140660720254832,
"hasError":false,
"error-type-number":0,
"error-position":"",
"error-operator":"(not defined)",
"error-type":"[NO ERROR]",
"error-message":"No error has occurred for this computation object (PACEVAL_ERR_NO_ERROR).",
"version-number":4.04
}

paceval.GetComputationResultExt("http://paceval-service.com", "140660720254832", "3", "0.5;2;0.4;2;0.3;2")

Return:
{
"number-of-multiple-values":3,
"handle_pacevalComputation":140660720254832,
"hasError":false,
"results": [ "-0.651801782452278", "-0.600121659758506", "-0.531689249020161" ],
"interval-min-results": [ "-0.651801782452306", "-0.600121659758535", "-0.531689249020193" ],
"interval-max-results": [ "-0.65180178245225", "-0.600121659758477", "-0.53168924902013" ],
"error-type-numbers": [ 0, 0, 0 ],
"time-calculate":"0.000502s",
"version-number":4.04
}

paceval.GetComputationInformationXML("http://paceval-service.com", "140660720254832")

Return:
{
"handle_pacevalComputation":140660720254832,
"information-XML":"<br><br><paceval.-Computation><br><br>\ <version>4.04</version><br><br> <function50Characters>-sin(x*cos(x))^(1/y)</function50Characters><br><br> <functionLength>20</functionLength><br><br> <numberOfVariables>2</numberOfVariables><br><br> <useInterval>true</useInterval><br><br> <errorMessage>No error has occurred for this computation object (PACEVAL_ERR_NO_ERROR).</errorMessage><br><br> <errorDetails>[NO ERROR]</errorDetails><br><br> <maxPrecisionType>long double</maxPrecisionType><br><br> <numberOfNodes>11</numberOfNodes><br><br> <numberOfCores>20</numberOfCores><br><br> <numberOfThreads>1</numberOfThreads><br><br> <numberOfThreadsFailure>0</numberOfThreadsFailure><br><br> <cacheTypes>Inner Caching, Outer Caching, Lookahead Caching</cacheTypes><br><br> <cacheHitsACC>3</cacheHitsACC><br><br></paceval.-Computation><br><br>",
"version-details":"[libpaceval_linux_staticLIB.a] and [libpaceval_linux_sharedLIB.so][4.04, 64 bit] developer version (non-commercial use only) - Copyright 2015-2022. - All rights reserved. (paceval.[Registered Trade Mark])",
"version-number":4.04 }

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

paceval-0.0.4.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

paceval-0.0.4-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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