my question is to Create a program to add sines and cosines of frequencies and plot them visually.eg addfreq out.jpg sin 0.2 cos 0.4 cos 0.7 This command will plot three curves (using different colors) and plot their sum as well at different discrete points.image magick++ is also to be used so that the output is stored in a jpeg pic.

Any idea as to how this question should be done .

help is appreciated

Recommended Answers

All 3 Replies

Any idea as to how this question should be done .

Yes -- find out how to use magick++

Use a loop to calculate successive values of the functions.
Use those values to place a point in your output.
As for magic++, I've never used it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.