Thursday, December 26, 2019

Representation of Edge Probabilities


PL="Edge Probability in Percentage";
RV=Table[t->ColorData["DeepSeaColors"][t/16],{t,16}];
VGP[p_]:=GraphPlot3D[RandomGraph[BernoulliGraphDistribution[16,
p/100]],ImageSize->Large,PlotLabel->{PL,ToString[p]},
GraphLayout ->"SpringElectricalEmbedding",
EdgeStyle->RGBColor["slategray"],VertexStyle->RV ];
VGP[90]


Graph Styling 4


GS={"DodecahedralGraph","NauruGraph","IcosahedralGraph"};
CV[g_]:=Table[i->ColorData["BrightBands"]
[i/Length[GraphData[g,"Vertices"]]],
{i,GraphData[g,"Vertices"]}];
CE[g_]:=Flatten[Table[Table[i<->j->
ColorData["BrightBands"][i/Length[GraphData[g,"Vertices"]]],
{j,AdjacencyList[GraphData[g],i]}],{i,GraphData[g,"Vertices"]}]];
CGP=Function[{g,n},GraphPlot[GraphData[g,"Graph","All"][[n]],
VertexSize->.2,VertexStyle->CV[g],EdgeStyle->CE[g],
VertexShapeFunction->"ConcavePentagon",
EdgeShapeFunction->"CarvedArrow",ImageSize->600]];
CGP["NauruGraph",6]


Surfaces as Art Object 2


f=-.01Floor[3\[Theta]]-Exp[\[Phi]/4];
g=1.6(Sin[Floor[3\[Theta]]]+Cos[2\[Theta]]Sin[5\[Phi]]);
SphericalPlot3D[{f,g},{\[Theta],0,2Pi},{\[Phi],0,2Pi},
ImageSize->600,PlotRange->All,PlotPoints->17,
Mesh->False,Boxed->False,Axes->False,
PlotStyle->{Opacity[.3],Opacity[0.8]},
ExclusionsStyle->{None,Gray},
ColorFunction->Function[{x,y,z,\[Theta],\[Phi],r},
ColorData["BrightBands"][1-z]]]



Surfaces as Art Object


SphericalPlot3D[-Cos[3\[Theta]]-Cos[16\[Theta]]Sin[3\[Phi]],
{\[Theta],0,2Pi},{\[Phi],0,2Pi},PlotRange->All,
ImageSize->600,PlotPoints->25,Mesh->False,
Boxed->False,Axes->False,PlotStyle->Opacity[.8],
ColorFunction->Function[{x,y,z,\[Theta],\[Phi],r},
ColorData["BrightBands"][.45r]]]


Explorations of Integrals


F={Log[2+3x^2],x^(1/3)*Log[x],Sqrt[x]*ArcTan[Sqrt[x]],
Exp[x]*Sin[2x],Exp[-x]*(x+2),4^(-x)*(x+3),
x*Log[x]^2,ArcTan[Sqrt[4x-1]],(4x+1)*Cos[2x],(x+5)*Sin[3x]};
Grid[Table[Plot[{F[[i+5*(j-1)]],
Evaluate[Integrate[F[[i+5*(j-1)]],x]]},
{x,0,1},ImageSize->{400,200},PlotLabel->TraditionalForm[F[[i]]]->
TraditionalForm[Integrate[F[[i]],x]]],{i,5},{j,2}]]