Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help plotting function
#1
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
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020