TransWikia.com

Plotting symbolic functions

Mathematica Asked by Jasmine on December 8, 2020

I want to plot the following Gaussian function

enter image description here

Is there a way that I can do this symbolically without giving values to the constants.

One Answer

How about this?

f[x_, a_, b_, c_] = a PDF[NormalDistribution[b, c], x]

enter image description here

Then

ContourPlot3D[f[x, 1, b, c], {x, -3, 3}, {b, -1, 1}, {c, 1, 2}]

enter image description here

Note that I am not claiming it is particularly informative!

This might be more useful?

Plot[Table[f[x, 1, b, 1], {b, -1, 1, 1/4}] // Evaluate, {x, -2, 2}, 
 PlotStyle -> ColorData[10]]

enter image description here

Plot[Table[f[x, 1, 1/2, c], {c, 1/2, 2, 1/4}] // Evaluate, {x, -2, 2}, 
 PlotStyle -> ColorData[10]]

enter image description here

Answered by chris on December 8, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP