Cos'è ElectroYou | Login Iscriviti

ElectroYou - la comunità dei professionisti del mondo elettrico

Simulatore macchina del tempo

Strumenti informatici per la matematica applicata, le simulazioni, il disegno: Mathcad, Matlab, Scilab, Microcap, PSpice, AutoCad ...

Moderatori: Foto Utenteg.schgor, Foto Utentedimaios

1
voti

[11] Re: Simulatore macchina del tempo

Messaggioda Foto Utenteg.schgor » 15 nov 2011, 10:57

Ecco la variante:

Codice: Seleziona tutto
For x=2011 to 1900 step -1
    for t=log(x)*log(x)*500 to 0 step -1
    next t
    CLS
    print x
next x
For x=1899 to 1800 step -1
    for t=log(x)*log(x)*200 to 0 step -1
    next t
    CLS
    print x
next x
For x=1799 to 0 step -1
    for t=log(x+1)*log(x+1)*100 to 0 step -1
    next t
    CLS
    print x
next x

(si sono suddivisi i periodi e aggiunto un andamento quadratico)
Ovviamente per le velocità relative si possono ancora
variare i vari coefficienti (500,200,100)
Avatar utente
Foto Utenteg.schgor
57,8k 9 12 13
G.Master EY
G.Master EY
 
Messaggi: 16971
Iscritto il: 25 ott 2005, 9:58
Località: MILANO

0
voti

[12] Re: Simulatore macchina del tempo

Messaggioda Foto Utentejacobrs » 16 nov 2011, 14:45

Mi da questo errore e non riesco a visualizzarlo...
Immaghigine.jpg
Immaghigine.jpg (44.76 KiB) Osservato 1385 volte
Avatar utente
Foto Utentejacobrs
10 5
Frequentatore
Frequentatore
 
Messaggi: 105
Iscritto il: 15 ott 2007, 0:13

0
voti

[13] Re: Simulatore macchina del tempo

Messaggioda Foto Utenteg.schgor » 16 nov 2011, 16:19

Sembra non interpreti i logaritmi
(anche se compresi nel repertorio:
Codice: Seleziona tutto
LOG( n )
Description:
This function returns the natural log of  n.

Usage:
  print log( 7 )              produces:  1.9459101


(prova questo esempio)
E' strano, perché a me funziona regolarmente.
(hai provato a vedere il dettaglio del warning?)
Avatar utente
Foto Utenteg.schgor
57,8k 9 12 13
G.Master EY
G.Master EY
 
Messaggi: 16971
Iscritto il: 25 ott 2005, 9:58
Località: MILANO

0
voti

[14] Re: Simulatore macchina del tempo

Messaggioda Foto UtenteRenzoDF » 16 nov 2011, 16:40

Sotto XP funziona, ma sotto Vista/Seven ... chissa' chi lo sa :mrgreen:

http://justbasic.wikispaces.com/Installing_on_Vista

...forse e' colpa del DEP :roll:
"Il circuito ha sempre ragione" (Luigi Malesani)
Avatar utente
Foto UtenteRenzoDF
55,9k 8 12 13
G.Master EY
G.Master EY
 
Messaggi: 13189
Iscritto il: 4 ott 2008, 9:55

Precedente

Torna a Programmi applicativi: simulatori, CAD ed altro

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite