Analisando código em Wolfram Language
Analisando código em Wolfram Language
Warm up: Wolfram Language workshop
Daniel de Souza Carvalho
dcarvalho@wolfram.com
@danielscarvalho
dcarvalho@wolfram.com
@danielscarvalho
Segunda-Feira, 9 de Novembro (GMT -3)09:30–12:00 Me. Daniel Carvalho (em Portugues do Brasil) no Zoom
Entre no Chat Session do evento
Entre no Chat Session do evento
Conectar no chat pelo Mathematica, menu File, New, Chat Session buscar por brconf2020 no campo new contacts...
Útil para trabalho em equipe e para o hackathon
Para saber mais sobre Chat Session: https://reference.wolfram.com/language/workflowguide/UsingChat.html
Útil para trabalho em equipe e para o hackathon
Para saber mais sobre Chat Session: https://reference.wolfram.com/language/workflowguide/UsingChat.html
De quem é esta criança??
De quem é esta criança??
In[]:=
domCasmurroText=Import["https://archive.org/stream/DomCasmurro/Dom+Casmurro_djvu.txt"];
In[]:=
WordCloud[domCasmurroText]
Out[]=
In[]:=
SmoothHistogram[Legended[First/@StringPosition[domCasmurroText,#],#]&/@{"Capitu","Bentinho","Escobar"},FillingAxis]
Out[]=
In[]:=
{RandomInteger[10,10],RandomInteger[10,10]}*1/2//MatrixFormSmoothHistogram[%,FillingAxis]
Out[]//MatrixForm=
7 2 | 5 2 | 2 | 7 2 | 9 2 | 9 2 | 1 | 5 2 | 5 2 | 0 |
1 2 | 1 2 | 3 2 | 1 | 2 | 2 | 9 2 | 1 2 | 2 | 7 2 |
Out[]=
In[]:=
SmoothHistogram[{RandomInteger[10,100],RandomInteger[10,100]},FillingAxis]
Out[]=
Interface Wolfram Notebook - v1 - Mathematica - 1988
In[]:=
Map[F,Range[10]]
Out[]=
{F[1],F[2],F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10]}
In[]:=
F/@Range[10]
Out[]=
{F[1],F[2],F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10]}
In[]:=
Map[#*2&,Range[10]]
Out[]=
{2,4,6,8,10,12,14,16,18,20}
In[]:=
#*2&/@Range[10]
Out[]=
{2,4,6,8,10,12,14,16,18,20}
In[]:=
StringPosition["abXYZaaabXYZaaaaXYZXYZ","XYZa"]
Out[]=
{{3,6},{10,13}}
In[]:=
MatrixForm[StringPosition["abXYZaaabXYZaaaaXYZXYZ","XYZa"]]
Out[]//MatrixForm=
3 | 6 |
10 | 13 |
In[]:=
StringPosition["abXYZaaabXYZaaaaXYZXYZ","XYZa"]*2//MatrixForm
Out[]//MatrixForm=
6 | 12 |
20 | 26 |
In[]:=
Range[10]//Total
Out[]=
55
In[]:=
Total[Range[10]]
Out[]=
55
In[]:=
First/@StringPosition["abXYZaaabXYZaaaaXYZXYZ","XYZa"]
Out[]=
{3,10}
In[]:=
First[Range[10]]
"One-Liner Competition" casos
"One-Liner Competition" casos
Programa em Wolfram Langue com até 180 caracteres
Dia das bruxas:
Média da idade:
Gráfico 3D:
Images & IA
Images & IA
Demonstration: "Counting Objects in Images"
Demonstration: "Counting Objects in Images"
Visualização: CrossRecurrencePlot
Visualização: CrossRecurrencePlot
Applying the Smith-Waterman Similarity to Cellular Automata
Applying the Smith-Waterman Similarity to Cellular Automata
Twitter #100DaysOfCode
Twitter #100DaysOfCode
Ctrl + =
Image APIs
Image APIs
Lest have some fun!!
Test your models with crazy data!!
Test your models with crazy data!!
Calm: https://www.placecage.com/200/300
Gray: https://www.placecage.com/g/200/300
Crazy: https://www.placecage.com/c/200/300
GIF: https://www.placecage.com/gif/200/300
Calm: https://www.placecage.com/200/300
Gray: https://www.placecage.com/g/200/300
Crazy: https://www.placecage.com/c/200/300
GIF: https://www.placecage.com/gif/200/300
Cage Collage: a collage of your preferred star!!
Steven Segall API:
Calm: https://stevensegallery.com/200/300
Gray: https://stevensegallery.com/g/200/300
Calm: https://stevensegallery.com/200/300
Gray: https://stevensegallery.com/g/200/300
Lista de WEB APIs públicas: https://github.com/public-apis/public-apis
Tem API para tudo na Internet!!
Tem API para tudo na Internet!!
Publicando uma API no Wolfram Cloud
Publicando uma API no Wolfram Cloud
Bill Murray API:
Calm: https://fillmurray.com/200/300
Gray: https://fillmurray.com/g/200/300
Calm: https://fillmurray.com/200/300
Gray: https://fillmurray.com/g/200/300
Create a new instant API:
Create a new instant API:
You should add to the URL a query parameter with a famous person name
?query=Madonna
?query=Bill+Murray
?query=Bill+Gates
?query=Madonna
?query=Bill+Murray
?query=Bill+Gates
Consuming the WEB API:
Onde aprender mais?
Onde aprender mais?
Wolfram U:
https://www.wolfram.com/wolfram-u/
An Elementary Introduction to the Wolfram Language:
https://www.wolfram.com/language/elementary-introduction/2nd-ed/
https://www.wolfram.com/wolfram-u/
An Elementary Introduction to the Wolfram Language:
https://www.wolfram.com/language/elementary-introduction/2nd-ed/
Fast Introduction for Programmers:
https://www.wolfram.com/language/fast-introduction-for-programmers/en/
https://www.wolfram.com/language/fast-introduction-for-programmers/en/