Difference between revisions of "RvsZ3"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "Comparison of R vs Z3 Please check back in couple of days. We are updating the page.")
 
Line 1: Line 1:
 
Comparison of R vs Z3
 
Comparison of R vs Z3
 +
== Simple manipulations; numbers and vectors==
 +
===Vectors and assignment===
 +
Z3 operates on named data structures. The simplest such structure is the numeric vector,
 +
which is a single entity consisting of an ordered collection of numbers.
 +
To set up a vector named x, say, consisting of five numbers, namely 10.4, 5.6, 3.1, 6.4 and 21.7, use the R
 +
command
 +
> x <- c(10.4, 5.6, 3.1, 6.4, 21.7)
 +
 +
Z3 command to set up a vector is:
 +
[10.4, 5.6, 3.1, 6.4, 21.7]==>x
 +
Or
 +
x<==[10.4, 5.6, 3.1, 6.4, 21.7];
 +
 +
Alternatively we can use  x=[10.4, 5.6, 3.1, 6.4, 21.7]
 +
  
 
Please check back in couple of days. We are updating the page.
 
Please check back in couple of days. We are updating the page.

Revision as of 02:07, 6 July 2021

Comparison of R vs Z3

Simple manipulations; numbers and vectors

Vectors and assignment

Z3 operates on named data structures. The simplest such structure is the numeric vector, which is a single entity consisting of an ordered collection of numbers. To set up a vector named x, say, consisting of five numbers, namely 10.4, 5.6, 3.1, 6.4 and 21.7, use the R command > x <- c(10.4, 5.6, 3.1, 6.4, 21.7)

Z3 command to set up a vector is: [10.4, 5.6, 3.1, 6.4, 21.7]==>x

Or

x<==[10.4, 5.6, 3.1, 6.4, 21.7];

Alternatively we can use x=[10.4, 5.6, 3.1, 6.4, 21.7]


Please check back in couple of days. We are updating the page.