June 2025
Intermediate to advanced
515 pages
17h 5m
English
Write a program that represents the following two functions in a diagram:y1 = cos xy2 = x
Write a program that plots the voltage drop U = 𝑓(I) and power P = (I) for a 1-Ω resistor in a function plot. On the left axis, plot the voltage U in volts and, on the right axis, plot the power P in watts. To add scaling to the right axis, you must create a new object using the twinx method a2=a1.twinx().
The gas consumption of a heating system for one week from Monday to Sunday is to be represented in a diagram as a line graph. For this period, the total gas consumption and its average value should be calculated and displayed within the diagram. You can save the days of the week in a list:
days=['Mon','Tue','Wed','Thu','Fri','Sat'
Read now
Unlock full access