Z3prima-Tocheck

From ZCubes Wiki
Revision as of 17:13, 18 February 2022 by Joseph (talk | contribs) (โ†’โ€Ž02/15/2022)
(diff) โ† Older revision | Latest revision (diff) | Newer revision โ†’ (diff)
Jump to navigation Jump to search

z3prima observations-To Check


FOR 20..30 "det(MAGICSQUARE(x))";-- It is giving the "null" as Result.

a=FOR 1..100 SIN;--It is giving the "null" as Result.

FOR "SUM(1..x)" 1...1000000000...100 -"null" as Result


Now z^3 language needs parentheses and commas. Try

FOR(20..30, "det(MAGICSQUARE(x))");

etc.

A=(|3x4|@4.3)@SIN;

-incorrect

|4|.$i([SUM,SIN,COS]);

.i is index. .$i is removed

Try |4|.$([SUM,SIN,COS]);


|4|.$i(SUM,SIN,COS)

.$i is removed


PMT(#1/1/2011,#2/2012)

- Getting the result as "๐Ÿ˜ SORRY! Cannot read properties of undefined (reading 'units')"

PMT parameters are PMT(Rate,NoPaymentPeriods,PresentValue,FutureValue,Type)

x=2;

a=5!;

a=(a+x)*!34;

-Result is "0". Having Doubt on this.

!34 is false which equals zero


a=34!P!3!C!3

--Giving the result as Null. Is it work?

Try

COMBIN(PERMUT(34, 3n), 3);

with BigInt

or a=34n!P!3!C!3

(Translates to COMBIN(PERMUT(34, 3n), 3);)

Can I ignore these commands:

  • var a=2; v:=u+a*t;var b=3;

Need to init u and t and it will work.


  • var a=#a-x,d=#1/1/2011;

try

var a=#a-x;

d=#1/1/2011;

[a,d]

or a

or d


  • [49,31,#].$(z^2)
  • [49,31,#].$("z^2")

Try [49,31].$(z=>z^2)

1..3**3.$d(SIN) -Null as Result.

- try

(1..3**3).$d(SIN)

a=100..|x+y|3

- Null as Result

Maybe try

a=(100..)|x+y|3

0..10@"SIN(x^2,1..10)".graph();

Try 0..10@"SIN(x^2,1..10)"

Not sure what graph is expected here.


0..10@"SIN(x^2,1..23..10)".graph(30).sin()

- Showing the Values but not showing the Graph

0..10@"SIN(x^2,1..23..10)"

is a complex structure, and graphing does not make sense


SIN("x^2",1..10)

- It is not giving any Result.

Maybe

1..10@(x=>SIN(x^2))


((2..3)~)*34

(2..3)*~34 - NaN as a Result.

Try

((2..3)~)|*|34

var a=34; do {

a=2; }when(a<3) a; --Undefined as Result.

Try

var a=34; do {

a=2; }when(a<3) ; a;

a=โˆ… ;

a?224:524


Try--Null as Result.

a=null

a?224:524


1..100โ‹ฐ

1..100โ‹ฑ

- "๐Ÿ˜ SORRY! ใซžใดถ.flatten is not a function" as a Result

Try

(1..100)โ‹ฑ


a=โŠค; b=โŠฅ; [[a,b],[a โˆง b,a โˆจ b]] --Null as Result.

-should work in release after 0130/2022

a=!โˆ…;

(a)?4135:645

-should work in release after 0130/2022

-Will check


1J<>(l.atm);

1J<>(l.atm-1)

--Null as Result

-See if the conversion is correct. Do not think we can convert these units exactly as given.


1(kg.m2s-2)<>(N)

-Null as Result

-Should be

1(kg.m/s2)<>(N)

12(g.m)<>(g.mm)

-It is Working. Full form of g.m,g.mm and g.s?

gram meter

12(g.m)<>(g.s)

12(g.m-1/s)<>(g.cm-1)

1(kg.m2/s2)<>e

1.3(kg.m2/s2)<>Jo

- Null as Result


Try

1.3(kg.m2/s2)<>J

(1..100)<>USD<>EUR

- "This is a test only conversion JSON Currency Conversion of date:2016-06-10 is used. This is a test only conversion JSON" as Result

Conversion tables in the system are older. Need to refresh the currency conversion tables with the latest.

01/31/2022

[1..10,1..10].at(SIN)--Just showing the numbers from 1 to 10.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at is now a standard js array function. We have renamed old .at function to .applyat . Please change .at in zcubes documentation to .applyat

โˆš(4m3)- Giving the result as "2m^1.5". Is m3 unit?

Yes. Sqrt of 3 in unit power is 1.5

SVD([1 0 1; -1 -2 0; 0 1 -1]) - Giving the result as "๐Ÿ˜ SORRY! Cannot read properties of null (reading 'rowcount')"


NPV(0.1..1..0.01,-10000,3000,4200,6800) - It is working and giving its result but it is showing the Chinese character in its header.

Will be ok when help is refreshed.

A=eval(NROOTS("2x^2+4x-5"));
A[1] - It is not giving any result.

This is symbolic computation. Hence not a true array.

When I am giving below commands Zprod is getting Stuck:
*SERIESSTR("1/x^_x",1..5).concat("...").tolatex("+")
*CONTINUEDFRACTION([2,3,4,"..."])
*SERIESSTR("1/x^_x",1..5).concat("...").tolatex("+-".split(""))
*SERIESSTR("1/x^_x",1..9).concat("...").tolatex("+-".split(""))

// all of these work with new release Jan 31, 2022

*PYBERNOULLI(1..30)

// PYBERNOULLI is slow when the sizes are big. Just wait and it will work.

Will check into this. Seems to be a minor parsing issue.

LATEX((1%%6)<>m)) -It is giving the result as Null

Try LATEX((1%%6)<>m)

SortAsFlatArray(((1..10)<>m).concat(1000cm) โ‹ฑ) -๐Ÿ˜ SORRY! SortAsFlatArray is not defined

SortAsFlatArray is an internal function.

MATRIX("hankel:negative integer") -๐Ÿ˜ SORRY! ใซŸใฎจ.size is not a function. But "hankel:positive integer" is giving result.

Fixed

1..100@"EQ(SUM(x,15))" - Giving the result as #N/A

Try

1..100@"EQ(SUM(x,15),0)"

The following Commands are not giving any Result:
*|4x3;3||x^2|
*|4x3::3||x^2|
*(|4x3|@3)|x^2|
*|3x4|@4.3
*|3x4|@44
*A=34;|3x4|@A

Try |4,3,[3]||x^2| etc. We dropped notation like |4x3|, instead we use |4,2| or |4,2,[3]| with [3] to fill the array.

@ operator is now used for an array of data on one side, and one or an array of functions on the other. This is called in a "combanatorial" way from input data on the other side.

MATRIXLATTICEMERGE(|4|,|4x1|) -Giving the result as "Null"

4x1 changed to 4,1. But will check the function.

Check into this because of LATTICEMERGE 

TENSORPRODUCT as per https://www.math3ma.com/blog/the-tensor-product-demystified

TENSORPRODUCT([[1,2,3]],[[4,5,6]]).print()


TENSORPRODUCT([[1,2,3]],[[4,5,6]]).print()

TENSORPRODUCT([[1],[2],[3]],[[4],[5],[6]]).print()

TENSORPRODUCT([[1],[2],[3]],[[4],[5]]).print()


EOMONTH(#1/31/2022)
EOMONTH("1/31/2022")
EOMONTH(NOW()) is not correct

EOMONTH("1/31/2022")

was correct.

EOMONTH(NOW())
has time 22:46 etc with it so has issues.

//EDATE(start_date,months,otherperiodtag)
EDATE(NOW(),-2.5)
EDATE(NOW(),1,"week") 
EDATE(NOW(),1,"quarter") 


DIFFDATES(TODAY(),EOMONTH(NOW()))
STARTOF(TODAY(),"M")
STARTOF(TODAY(),"W")
STARTOF(TODAY(),"Q")

TEXTJOIN("-",false,3 ,3, 34,343,3434,344)

TEXTJOIN("-",false,1..100)

NEXTOF(NOW(),"Q",1..4)

NEXTOF(NOW(),"Q",1..40)

NEXTOF(NOW(),"Q",1..40)

EOMONTH(#1/1/2021,-1).format("mm/dd/yy")

EOMONTH("2001-01-01",0)
 - now works using moment. -old was different from excel
EOMONTH(NOW(),0)
EOMONTH("2001-01-01",0,"week")
EOMONTH(NOW(),0,"week")
	



a=EOMONTH("2001-01-01",0)
-gives "2000-12-31T06:00:00.000Z"in local time.
how to adjust to get real date with whole in local?
MOMENT(b.utc()).format("MM/DD/YYYY")
in local etc. so that it is midnight
MONTH etc may refer to 12, instead of 1
how to resolve this.

start_date+start_date.getTimezoneOffset()*60*60
'Sun Dec 31 2000 18:00:00 GMT-0600 (Central Standard Time)1296000'
start_date.getTime()+start_date.getTimezoneOffset()*60*60
978308496000
new Date(start_date.getTime()+start_date.getTimezoneOffset()*60*60)
Sun Dec 31 2000 18:21:36 GMT-0600 (Central Standard Time)

MOMENT(start_date).utc().format("MM/DD/YYYY")
'01/01/2001'
MONTH(MOMENT(start_date).utc().format("MM/DD/YYYY"))


PERIODOF(#1/1/2022,"quarter",3).duration()

PERIODOF(#1/1/2022,"quarter",3).ticks("days",1)

PERIODOF(#1/1/2022,"quarter",3).ticks("days",1,"minute")

PERIODOF(#1/1/2022,"quarter",3)

PERIODOF(#1/12/2022,"months",3)

PERIODOF(#1/12/2022,"months",3).ticks("months",1)

PERIODOF(#1/12/2022,"months",3,true)


PERIODOF(#1/12/2022,#2/22/33)

PERIODOF(#1/12/2022,#2/22/33).intervals(10)

period tags:
year
month
quarter
week
isoWeek
day
date
hour
minute
second


years	y
quarters	Q
months	M
weeks	w
days	d
hours	h
minutes	m
seconds	s
milliseconds	ms


PERIODOF(#1/12/2022,#2/22/33).ticks("year",10)

PERIODOF(#1/12/2022,"year",10).ticks("year",10)

PERIODOF(#1/12/2022,"year",10,1)

PERIODOF(#1/12/2022..1/23/2028,"year",10,1)

PERIODOF(#1/12/2022,"year",10,1)
		 .ticks("years")
		 
PERIODOF(#1/12/2022,"year",10,1)
		 .ticks("years")		 
		 

PERIODOF(#1/12/2022,"month",100,1)
		 .ticks("days") ~


EDATE(NOW(),1..5,"quarter") 


TEXTJOIN("-",false,3, ,3, 34,343,3434,344)  // had issues

EDATE(NOW(),-2.5) only did 2 months. 

EDATE(NOW(),-2.5) 
DIFFDATES(TODAY(),EOMONTH(NOW())) 
STARTOF(TODAY(),"M") 
TEXTJOIN("-",false,3 ,3, 34,343,3434,344) 
NEXTOF(NOW(),"Q",1..4) 

PERIODOF(NOW(),"Q",4) 
	.ticks("years") 
// ticks works with Periods as in PERIOIDOF


NEXTOF(TODAY(),"Q",1..4) 

NEXTOF(TODAY(),"w",1..100) 

EOMONTH(TODAY(), -2.3)
EOMONTH(TODAY(), -2)
EOMONTH(TODAY(), 2.5)
EOMONTH(TODAY(), -2.5)

EDATE(TODAY(), 2.5,"day")
EDATE(TODAY(), 2.5)
EDATE(TODAY(), 2,"week")
EDATE(TODAY(), 2.5,"week")
EDATE(TODAY(), -13.5,"week")



PERIODOF("Jan 2026","quarter",2..10)
	periods did not look right at start part

STARTOF(TODAY(),"quarter",3)
STARTOF("7/8/2022","quarter",3)
STARTOF("7/8/2022","quarter",2..10)
NEXTOF("7/8/2022","quarter",2..10)
PERIODOF(TODAY(),"quarter",3)
PERIODOF(TODAY(),"quarter",0..10,true)
NEXTOF(TODAY(),"quarter")
PERIODOF("Jan 2026","quarter",2..10,true)
ENDOF(TODAY(),"quarter")
ENDOF(TODAY(),"quarter",0..10)
ENDOF(TODAY(),"quarter",0..10,false)
PERIODOF(TODAY(),"quarter",2..10)


02/15/2022

ROTATEMATRIX(|4|,1) -- ๐Ÿ˜ SORRY! ROTATEMATRIX is not defined

-Changed to MATRIXROTATE(|4|,1)

MATRIX("cauchy",3) - It is showing as null except diagonal as 0
0   	null    	null
null    	0   	null
null    	null     	0

-will check

DrawDataCurve(1..100@SIN) - ๐Ÿ˜ SORRY! DrawDataCurve is not defined

-Internal ignore


|4|.r(1..2)--๐Ÿ˜ SORRY! IM(...).r is not a function

det|rand|5|| --๐Ÿ˜ SORRY! rand is not defined

|5|.deal().clear() -- Showing all the values as null

-This is correct. Clearing makes all elements to go to null

deal|3x3x5|.$("x+COS(x)*34")--null

-Try

|3,3,5|.deal().$("x+COS(x)*34")

Matrix size cant use x anymore, use commas.

adj|3x3x5|.$("x+COS(x)*34") --null

-Try

|3x3x5|.adj().$("x+COS(x)*34")

-Try something like

MATRIXADJOINT(|3,3,5..10|)
  .$("x+COS(x)*34")
adj is not a function anymore. 



Chinese Character is showing in the Header:
SUMOF("LOG(x)",3..4);
ADDBY(1..100,23..25)
mary=[SIN,COS,TAN]
[1..100,1..2]@minmax

1..100.collectwhile(ISSTRING) - No Result

This is correct. Try 

1..100.collectwhile(ISNUMBER)

or 
1..100.collectwhile(">45")



c=FOR ( 2..25, 1..14, "x^y");
c.crosstab()- Result as null

-crosstab is a complex function. This call does not make sense in this context.

-try with c.io() as input to these.

c.cumcolumns(2)
c.column(2).tail()  - No Result

-Try

c=FOR ( 2..25, 1..14, "x^y").io();
c.cumcolumns(2)

// .io() makes the array with input and output combined as a result. 


SSTR("<sup>_z</sup>_c<sub>_x</sub>*x<sup>_y</sup>",1..10,2..11,3..12,4..13).join("+") ---- Getting Stuck

SHAPES["mary","divya"]<<<["SIN(COS(x))",POWER] --๐Ÿ˜ SORRY! SHAPES is not defined

-Try

["mary","divya"]<<<[x=>SIN(COS(x)),POWER]

divya(23,33)

mary(4)

<<< is to assign to variable names on the left.



The following commands are giving null as result:
[1..10].$$([*,+,-,/]) 

-Try

[1..10].$$(["*","+","-","/"]) 

1..10|SIN(c)+(d^2)|333

-will check

(1..10)|"c+e"|(333) did not seem to work either.

(1..10)|SIN(x)+y^2|(333)  

works

-will check into why c and d did not work.

1..100 such that <4

-Try

1..100.suchthat("<4")

// old notations with spaces are no longer supported

(#1223 23 2 23.).length
FOR(3..5, "POLYGON(PolyPoints(100,x)")

-maybe something like 

ZC(POLYGON(FOR(3..5, x=>POLYPOINTS(100,x))))

-still need to check if we can show the polygon on a cube.


|3|.bindcolumn([3,4,5])---๐Ÿ˜ SORRY! IM(...).bindcolumn is not a function

[[1..100,101..200]].filteroncolumn(">20")-- No Result

-Try something like:

(([1..100,101..200])~).filteroncolumn(">20")

FOR(1..100, "$x.rotate(34,y)") - Showing the Result as Null

-Rotate Matrix works on matrices. In this notation, each element is passed on from 1..100. Try something like the following to see how rotate works:
MS(4).rotate(1)

(1..3**3).$d (SIN) --Showing the result as 1 	2 	3 	4 	5 	6 	7 	8 	9 	 10 	11 	12 	13 	14 	15 	16 	17 	18 	19 	20  	21  	22  	23 	24 	25 	26 	27
Is this correct?


Try something like:


(MS(4)).$d (SIN) 

.$d applies the function given as parameter on the primary diagonal of the matrix. Here it applies SIN to the diagonal of the magic square of size 4.

1..3**3 does no longer replicate the row 3 times, as ** is now an operator in JS.