samedi 22 décembre 2018

Plot of the exponential function

I need to generate a plot of the function $$ y=\exp(-0.1x)sin(0.5x) $$
using an asterisks(*) for each of the points that makes up the plot such that the plot run vertically downward the page, with one point (one asterisk) per line. Each printed line consists of appropriate no. of blank spaces .

How shall I plot this function in C program . I am a beginner in C who knows only - 1 D arrays, Control statements ,Data input -output .

I dont know -Recursion ,functions ,etc. I dont know , how shall I plot such a function since i know how to plot pyramid ,rectangles,etc.

Aucun commentaire:

Enregistrer un commentaire