Give DALL.E a piece of WL code that produces a graphics and that is not straightforward to predict in detail. It is interesting (and entertaining) to see how it ‘understands’ the code and predicts what the result could look like.

DALL·E 2 prompt

In all the following examples, the following DALL.E prompt has been used:
Analyze the following code carefully and make an artistic rendering of how you think the result would look like:

The Wolfram Language input code and its output graphics

partialSum[n_,x_]:=Sum[Sqrt[2/Pi](1-Cos[iPi/2])/iSqrt[2/Pi]Sin[ix],{i,n}]​​​​Plot[Evaluate[Table[partialSum[j,x],{j,10,120}]],{x,0,Pi/2},PlotPoints->200,PlotRange->{0.88,1.2},​​PlotStyle->Table[{Thickness[0.002],GrayLevel[k/120]},{k,120}]]

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

Module[{f},​​f[y_]:=Module[{x2,y3,x4,y5},​​(*movealternatinghorizontallyorverticallytotheright*)​​{{-1.5,y},{x2=-(1-(y^4))^(1/4),y},​​{x2,y3=(1-(x2^2))^(1/2)},​​{x4=Sqrt[1-(y3-1)^2]-1,y3},​​{x4,y5=-(1-(x4+1)^2)^(1/4)+1},​​{0,y5},{-x4,y5},{-x4,y3},{-x2,y3},​​{-x2,y},{1.5,y}}];​​Graphics[{Thickness[0.001],​​Table[{Line[#],Line[Map[#{1,-1}&,#,{-2}]]}&[f[1-y^(3/2)]],​​(*allstartingheights*){y,0.0,1.0,0.025}]}]]
Out[]=

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

In[]:=
modifiedLogisticMap[x_,λ_,ε_,n_]:=(λ+(-1)^nε)x(1-x);​​​​modifiedLogisticMapData[x0_,λ_,ε_,l_,l0_]:=​​Drop[FoldList[modifiedLogisticMap[#,λ,ε,#2]&,x0,Range[l]],l0]​​Graphics[{PointSize[0.003],Table[Point[{λ,#}]&/@​​modifiedLogisticMapData[1/210,λ,0.2,300,100],​​{λ,2.6,3.8,0.001}]},PlotRange->All,Frame->True,​​Background->Lighter[Gray,0.5]]

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

The Wolfram Language input code and its output graphics

DALL-E AI prediction from reading the input code

CITE THIS NOTEBOOK

DALL-E AI artistic renderings predicted from graphics-generating code: Part I​
by Michael Trott​
Wolfram Community, STAFF PICKS, January 29, 2024
​https://community.wolfram.com/groups/-/m/t/3111908