help in this proyect Programming Software Development by Felipe_1 …Evaluar.funcion, {“__builtins__”:None}, Evaluar.dicc_seguro) vectorx = zeros(N, Float64) vectory = zeros(N, Float64) i = 1 while i<=N : p… Evaluar.dicc_seguro) vectorx = zeros(N, Float64) vectorx1 = zeros(N, Float64) vectory = zeros(N, Float64) vectory1 = zeros(N, Float64) i = 2 while… Re: while i<=N : NameError: name 'N' is not defined Programming Software Development by Schol-R-LEA …eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectory[i-1]=fp if fabs(po-fp): print "…* def puntofijo(po,TOL, N): vectorx = zeros (N, Float64) vectory = zeros (N, Float64) i = 1 while i<=N … Dynamic matrix declaration Programming Software Development by sadsdw …quot;NA") { A[i][i]= 1.53; } else if(vectorY[i] == "NA" and vectorZ[i] != "…NA") { A[i][i]= 1.63; } else if(vectorY[i] != "NA" and vectorZ[i] == "…NA") { A[i][i]= 1.73; } else if(vectorY[i] != "NA" and vectorZ[i] != "… while i<=N : NameError: name 'N' is not defined Programming Software Development by Felipe_1 … * def puntofijo(po,TOL, N): vectorx = zeros (N, Float64) vectory = zeros (N, Float64) i = 1 while i<=N :… eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectory[i-1]=fp if fabs(po-fp): print "La… fa = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) Fi Programming Software Development by Manuela_1 …{"__builtins__":None}, Evaluar.dicc_seguro) vectorx = zeros(N, Float64) vectory = zeros(N, Float64) i = 1 while i<=N :…;0 : a = p else : b = p return [vectorx, vectory] def dibujar(a,b, TOL, N): x = arange(a,b… return Programming Software Development by lewashby ….0, 35.0) AB = Vectory2.from_points(A, B) print "Vectory AB is", AB print "Magnitude of Vector AB… Re: Class Vectorization requirements Programming Software Development by Ancient Dragon …,sizeof(enetpacket)); [/code] In MFC application you can put that vectory array in any of the MFC classes -- most probably either… Re: Does anyone have the stomach to look over my program? Programming Software Development by Lerner … an Inventory class and each Inventory object would have a vectory of inventoryItem variable and it would have the add, remove… Re: A function which will transfer the data from a file to STL( vector or map) object. Programming Software Development by Ancient Dragon … starts, you could just read the whole thing into a vectory and then do in-memory binary search. C++ std::string… Re: Tell me the logic Programming Software Development by thekashyap 1. Don't print a character if it's already printed. This you figure out using an extra array/vectory/... 2. While counting use a map of character vs count. Map will ensure there is only one entry for a given key. Re: CS3 Madness Digital Media UI / UX Design by coumarin … changed since then. Illustrator, well I found out about its vectory goodness three years ago, and though I am not as… Re: help in this proyect Programming Software Development by Gribouillis I'm afraid the indention didn't make it through the web editor. The best way to indent python code is with 4 space characters such as in if x == 0: print("hello") # <- see the 4 space at the beginning ? It means that you must configure your editor so that it inserts 4 space characters when you hit the *tab* key. Which code … Re: Dynamic matrix declaration Programming Software Development by drkybelk [CODE] float **A = 0.0; // pointer for A [/CODE] You cannot do that. The initialisation takes a double calue (0.0) and tries to assign it to a pointer (A**) that is a type mismatch. use instead: [CODE] float **A = 0 /* or NULL, although some people frown upon using NULL*/; // pointer for A [/CODE] Re: Dynamic matrix declaration Programming Software Development by sadsdw Thanks a lot Dr. drkybelk! Cheers! Re: while i<=N : NameError: name 'N' is not defined Programming Software Development by Felipe_1 I copy your code but throw this error File "C:\Users\manuela\Desktop\Metodos\PuntoFijo.py", line 20 break ^ IndentationError: unexpected indent thanks Re: while i<=N : NameError: name 'N' is not defined Programming Software Development by Schol-R-LEA Interesting. There are no `break` statements in the code you posted, which leads me to think that this is from the`evaluar` module which you are importing, or else some other file that it in turn imports. Re: while i<=N : NameError: name 'N' is not defined Programming Software Development by rubberman Stupid Python indentation rules! One of the many reasons I despise the language! Personally, I think the authors of the language took their Monty Python analogies way too far! Not to mention that they were too lazy to input a couple of squiggly braces to scope stuff. Who knows. Maybe their keyboard(s) were broken and the squiggly braces didn't work… Re: fa = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) Fi Programming Software Development by Gribouillis We don't know which string you are evaluating; can you add raise RuntimeError(repr(Evaluar.funcion)) immediately before `fa = eval(...` and post the error output ? Re: return Programming Software Development by TrustyTony This article has little info on __add__: [url]http://linuxgazette.net/issue54/pramode.html[/url] I do not know if it helps you. You have of course read the standard documentation [url]http://docs.python.org/reference/datamodel.html[/url] Re: return Programming Software Development by cghtkh In program 1, the '@classmethod' above the function definition indicates that it is a class method. You can call a class method by using the notation classname.method, without first instantiate a class object. I think program 2 has the 'cls' missed out by mistake. For __add__, this is used to overload the '+' operator. For doing addition, you … Re: return Programming Software Development by snippsat [QUOTE]In program 1 they are returned by an extra argument calles cls put in program to they are returned directly with the class name. Could someone please help me understand?[/QUOTE] Yes that what a class method do,did you read my link in the other post. [B]Vector2.from_points(A, C)[/B] here you call a method without making a instance(object).…