<jupyter_start><jupyter_text>* pip3 install numpy* pip3 install oct2py* pip3 install scipy* pip3 install rpy2* brew install homebrew/science/octave* brew install Caskroom/cask/rstudio* pip3 install pandas* pip3 install matplotlib<jupyter_code>%load_ext rpy2.ipython
%matplotlib inline
%%R
library(lattice)
attach(mtcars)

# scatterplot matrix
splom(mtcars[c(1,3,4,5,6)], main="MTCARS Data")
%load_ext oct2py.ipython
%%octave

A = reshape(1:4,2,2);
b = [36; 88];
A\b
[L,U,P] = lu(A)
[Q,R] = qr(A)
[V,D] = eig(A)
%%octave

xgv = -1.5:0.1:1.5;
ygv = -3:0.1:3;
[X,Y] = ndgrid(xgv,ygv);
V = exp(-(X.^2 + Y.^2));
surf(X,Y,V)
title('Gridded Data Set', 'fontweight','b');<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1919191919191919, 'fraction_numerical': 0.050505050505050504, 'mean_word_length': 6.229166666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '64446', 'license': 'MIT', 'n_tokens_mistral': 343, 'n_tokens_neox': 334, 'n_words': 66, 'path': 'octaveAndRintegrationExample.ipynb', 'repo_name': 'dk14/machine-learning-experiments', 'size': '693'}