saving . . . saved Linspace() related query : excluding has been deleted. Linspace() related query : excluding has been hidden .
Linspace() related query : excluding
Title
Question
<span style="font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;; mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:AR-SA">returns 100 evenly spaced samples from -pi to pi excluding -pi but including pi?</span>
<span style="font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;; mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:AR-SA">can u pls exaplin how to exclude starting point???</span>
<span style="font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;; mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:AR-SA">
</span>

Python Using-the-plot-command-interactively 09-10 min 10-20 sec 19-04-20, 11:33 p.m. Priskilla

Answers:

You can use the expression:
series = linspace(-pi, pi, 100)

to get an array of 100 equally spaced points including -pi and pi.

Linspace command gives you the option to exclude the last point (pi in this example). However there is no way to exclude the first point.
20-04-20, 10:12 a.m. ankitrj.iitb
but in assignment u asked the -pi excluding.but -pi is the starting place linspace(-pi,pi,100)
20-04-20, 12:16 p.m. Priskilla
There are two assignments one asks you the expression to obtain an array of 100 values equally spaced between - pi /2 and pi / 2

The third asks you what the expression linspace(-pi, pi, 100) does. This is an MCQ type question with the options given below. 
20-04-20, 12:38 p.m. ankitrj.iitb

Login to add comment


Log-in to answer to this question.