using pi and e constants from Z3 API


How does one use trigonometric functions like sin and cos and the constant Pi from the Z3 java API?

If I use the java API like so:

Solver s = context.getSolver() s.add(z3.parseSMTLIB2String( "(declare-fun theta () Real)\n"+ "(declare-fun offset () Real)\n"+ "(assert (> (cos theta) (/ 1 pi)))\n" //a sequence of empty arrays

Then z3 will attempt to reason about pi and cosine.

But I cannot figure out how to declare that in the java API. There is no mkCos or pi constant available. So how would one encode this with the java API? Is it perhaps a simple over-sight that this function and the constant pi are not exposed?


  • using pi and e constants from Z3 API
  • Cumulative multiplication in R with the addition of extra constants
  • Satisfiablity checking in non-linear integer arithmetic by approximation
  • Why do solver options like MiniSat, MiniSat with Unsat Core, Lingeling, Glucose do not appear in my
  • Implementing Karatsuba Multiplication in javascript?
  • How to implement a custom simplify tactic in Z3?
  • Setting logic for solver in Z3 (API)
  • SMT prover yields 'unknown' despite strong proven assertions
  • Federated query with secured SPARQL endpoint
  • Converting float[,] to list in f#?
  • Interpolation method that does not add unnecessary extremums
  • Mocking Non-Standard Events in F# Foq
  • data.table replicate rows after join?
  • mapping between two ontologies
  • Detecting # in Scheme list
  • Need code translation from VB to C#
  • Best practice to eliminate magic numbers within a member function
  • How can I mock ui-router's resolve values when testing a state's configuration?
  • Elasticsearch script query involving root and nested values
  • Using Sax parsing to edit and write XML in VB6
  • Why use database factory in asp.net mvc?
  • C++ pointer value changes with static_cast
  • Eliminate partial duplicate rows from result set
  • How do I configure context broker accept post requests from my remote sensor?
  • How integrated is Collada to OpenGL ES
  • debug library loaded with ctypes using gdb
  • How to attach a node.js readable stream to a Sendgrid email?
  • Admob requires api-13 or later can I not deploy on old API-8 phones?
  • output of program is not same as passed argument
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Javascript Callbacks with Object constructor
  • Statically linking a C++ library to a C# process using CLI or any other way
  • Hazelcast - OperationTimeoutException
  • Why winpcap requires both .lib and .dll to run?
  • RestKit - RKRequestDelegate does not exist
  • Revoking OAuth Access Token Results in 404 Not Found
  • Angular 2 constructor injection vs direct access
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • UserPrincipal.Current returns apppool on IIS