Posts by Priscila Guedes • 35 points
6 posts
-
-1
votes1
answer69
viewsQ: Python - Error 34, Result Too large
I’m trying to get a sequence of a recursive function, but it always returns me the overflow error. import math f = 1.5; a = 100; b = 10; d = 1; w = 3.76; x1 = 0; y1 = 0; z1 = 0; h = 10^-3; for i in…
pythonasked Priscila Guedes 35 -
0
votes2
answers424
viewsQ: How do I calculate the average running time of a function?
To calculate the execution time of a function I am using inicio=time.time() # código fim=time.time() How do I calculate the time repeatedly and then calculate the average of that time?…
pythonasked Priscila Guedes 35 -
0
votes1
answer85
viewsQ: Python files
I have the following code: x=[] x=0.1 for i in range (101): x = 2.6868*x - 0.2462*x**3 I want to save my data 'x' to manipulate it into another software, I did the following: with open( 'saida.txt',…
pythonasked Priscila Guedes 35 -
0
votes1
answer1835
viewsQ: Indexerror: index 4 is out of Bounds for Axis 0 with size 4
Good evening. I have the following Python code, but the cited error appears: import numpy as np x=np.ones((4,1)) for k in range (5,45): x[k]=5.5369*x[k-1]*(x[k-2])**2+0.1931*x[k-3] print(x) The…
pythonasked Priscila Guedes 35 -
0
votes1
answer252
viewsQ: Typeerror: a float is required
Good evening. I have the following Python code which, when calculating the variable h, the cited error appears: x=[] y=[] erro=[] h=[] x=0.1 y=0.1 for i in range (40): x=x**2-0.391*x y=y*(y-0.391)…
pythonasked Priscila Guedes 35 -
1
votes0
answers27
viewsQ: graphic in basic visual
How do I so that when I press the button, VB draw the chart using the component chart? Is giving problem in the private sub, because two appear: that of button and that of chart.…
visual-basic-6asked Priscila Guedes 35