Python Forum

Full Version: Help plotting function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. I am new to python.

I wanted to know the syntax for a problem

Suppose I want to plot a quantity x = (constant with a fixed given value) * ln (1+z) versus z (which varies from c to d)

How do I define the variables x and z, how do I input an 'ln' function

I have imported numpy, scipy and matplotlib, but do not know how to proceed thereafter.


Thank you
If you don't even know basic things like how to define variables, perhaps you need to go and read some introductory material on the language? The libraries you mention also have pretty good documentation, so you should read that too.