photo

Mary Jeppson


Aktiv seit 2016

Followers: 0   Following: 0

Statistik

All
  • Thankful Level 3
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


While loop to calculate sine
I have written this code that settles on an incorrect value and I can't see what's wrong. Can anyone show me? x = pi/4; ...

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Nested loops to estimate cos(pi/4)
I have written this code that is giving me an error: true = cos(pi/4); n = 2; es = .5^(2-n); x = pi/4; ea = 1; est = ...

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Convert base 2 to base 10 using loop
I've written this loop, but it produces a value of 128 for every number in the mult array instead of going from 128 to 64 to 32 ...

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


maclaurin series code problem
I keep getting "index exceeds matrix dimensions" but i don't see a problem. Can anyone see why this isn't working? n = 4; ...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


matlab code for Euler's method
I have written this code for my class, but keep getting 'index exceeds matrix dimensions' can anyone tell me what's wrong with i...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Problem with Fibonacci For loop
Here is my code: f(1) = input('What is the first number of the sequence?') f(2) = input('What is the second number?') ...

etwa 8 Jahre vor | 0 Antworten | 1

0

Antworten

Frage


Problem adding components of a vector using a while loop
Can anyone tell me what's wrong with this code? x = [1 23 43 72 87 56 98 33]; b = 0; k = 1; while k<=length(x) ...

etwa 8 Jahre vor | 2 Antworten | 0

2

Antworten