Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione avanzata > esercizi
Pages (4): « 1 2 [3] 4 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno ha capito come fare l'esercizio 2 del laboratorio 6 (decoratori) ?
Il metodo fibo() deve restituire praticamente la classica successione? l'avete implementata con un iteratore?

26-02-2011 17:30
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tooler
.fedelissimo.

User info:
Registered: Feb 2005
Posts: 46 (0.01 al dì)
Location:
Corso: comunicazione digitale
Anno:
Time Online: 9:48:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

penso che fibo debba essere ricorsiva, così la memoizzazione ha sicuramente più senso..:

code:
def memo(f): '''input memoization without keyworded argument''' f.cache = dict() def decorator(*a, **k): t = a #, frozenset(k) if (t) not in f.cache: f.cache[ t ] = f(*a, **k) #else: print('cached') return f.cache[ t ] return decorator @memo def fib(n): if n==0: return 1 if n==1: return 1 return fib(n-1)+fib(n-2) for i in range(10): print(fib(i))

26-02-2011 19:07
Click Here to See the Profile for tooler Click here to Send tooler a Private Message Find more posts by tooler Add tooler to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma Fib, Fact e Taylor le hai messi tutti in una classe MyMath?

27-02-2011 10:37
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tooler
.fedelissimo.

User info:
Registered: Feb 2005
Posts: 46 (0.01 al dì)
Location:
Corso: comunicazione digitale
Anno:
Time Online: 9:48:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no in realtà le ho scritte solo come funzioni.. un po' come avviene nel modulo builtin math.. scrivi: from math import sqrt
non so se è così che intendeva il prof ma se lo dovessi fare in java userei dei metodi statici quindi..

27-02-2011 11:48
Click Here to See the Profile for tooler Click here to Send tooler a Private Message Find more posts by tooler Add tooler to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie!
E la serie di Taylor come l'hai sviluppata invece?

27-02-2011 16:28
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

così come per il logging come avrei due domande:

1) Quando scrivo nel file viene sovrascritto l'intero testo piuttosto che aggiungerlo
2) come si fa a scrivere nel file anche gli argomenti delle varie ricorsioni?

27-02-2011 16:57
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Risolto il logging.

Per quanto riguarda invece il decoratore stack_trace?

28-02-2011 10:20
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno saprebbe spiegare l'esercizio sul triangolo di pascal?

02-03-2011 10:50
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
KIMMY
ragazza di Scofield

User info:
Registered: Sep 2005
Posts: 69 (0.01 al dì)
Location:
Corso: Informatica
Anno: per ora 3°
Time Online: 20:12:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avete poi fatto l'esame? com'è stato?

13-03-2011 10:58
Click Here to See the Profile for KIMMY Click here to Send KIMMY a Private Message Find more posts by KIMMY Add KIMMY to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
prexioso
.fedelissimo.

User info:
Registered: Sep 2003
Posts: 45 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 13 Days, 20:35:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno sa quando usciranno i voti???

01-04-2011 12:51
Click Here to See the Profile for prexioso Click here to Send prexioso a Private Message Find more posts by prexioso Add prexioso to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

boh...

01-04-2011 14:07
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sono usciti i risultati...

Stavolta gli esiti sono stati più positivi del solito, l'esame in fondo era più facile delle altre volte soprattutto (forse) nella distribuzione dei punteggi fra i vari esercizi.

Qualcuno sa solitamente quando e dove verbalizza il prof?

06-04-2011 15:05
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

PS: ma cosa significano le linguette rosse che ci sono sopra alcuni voti?

06-04-2011 15:05
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Batti
.novellino.

User info:
Registered: Jun 2010
Posts: 5 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1:25:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

"La verbalizzazione dell'appello del 9 marzo è fissata per lunedì 11 alle ore 12 nel mio ufficio (p121)."

mi chiedo anche io cosa siano i triangolini rossi...

07-04-2011 12:43
Click Here to See the Profile for Batti Click here to Send Batti a Private Message Find more posts by Batti Add Batti to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kray
.simpatizzante.

User info:
Registered: Mar 2006
Posts: 11 (0.00 al dì)
Location:
Corso: Comunicazione Digitale
Anno:
Time Online: 13:18:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

di solito in excel i triangolini rossi indicano che nella cella è presente un commento... il prof avrà annotato qualcosa, suppongo.. ciau

07-04-2011 13:22
Click Here to See the Profile for kray Click here to Send kray a Private Message Find more posts by kray Add kray to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 00:16.    Post New Thread    Post A Reply
Pages (4): « 1 2 [3] 4 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.043 seconds (84.44% PHP - 15.56% MySQL) con 26 query.