Sharedsupport / root.ipynbOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.

This is an example of the ROOT Jupyter kernel.

See https://root.cern.ch/root/htmldoc/guides/primer/ROOTPrimerLetter.pdf

In [1]:
printf("Hello world")
Hello world(int) 11
In [3]:
1+1
(int) 2
In [3]:
int foo(int a, int b) { return a*b; }
In [4]:
foo(45,89)
(int) 4005
In [7]:
foo(1292034802384, 120938023840823482)
(int) -6255840
input_line_41:2:6: warning: implicit conversion from 'long' to 'int' changes value from 1292034802384 to -750353712 [-Wconstant-conversion] foo(1292034802384, 120938023840823482) ~~~ ^~~~~~~~~~~~~ input_line_41:2:21: warning: implicit conversion from 'long' to 'int' changes value from 120938023840823482 to -287393606 [-Wconstant-conversion] foo(1292034802384, 120938023840823482) ~~~ ^~~~~~~~~~~~~~~~~~
In [ ]: