photo

Chesus


Last seen: 7 jours il y a Actif depuis 2023

Followers: 0   Following: 0

Statistiques

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


Problem with cubic root
When I try to get the cubic root of -1 (which should be -1) I get this: (-1).^(1/3) How do I fix this?

12 mois il y a | 1 réponse | 1

1

réponse

Question


Use user input in a function
I want to use a user input variable in a function like: n=input('n') k=3 f1=func(k) function f1=func(x); f1=n*x; end But...

12 mois il y a | 1 réponse | 0

1

réponse

Question


User input fractions or operations
I want to ask for an input in which the user is able to introduce a fraction like: x=input('Hi: ') Hi: 1/3 x= 0,333...

12 mois il y a | 1 réponse | 0

1

réponse

Question


Logarithm with a variable base
I want to make a logarithm that has a variable as its base, like: k=2 logk(8) ans = 3 How can I do that?

12 mois il y a | 1 réponse | 0

1

réponse

Réponse apportée
Assign multiple results to the same variable
indexing the varoable is the solution if true % code k=0 while ... %the condition you decide k=k+1 %by experience ...

12 mois il y a | 0

| A accepté

Question


Assign multiple results to the same variable
I'm doing a code that uses while, and inside that while is a variable whose value gets changed every instance, I want to store a...

12 mois il y a | 1 réponse | 0

1

réponse

Question


How do I table a variable with multiple values?
I have a variable with multiple values x= -10:1:10 and I want to put it in a table, with each value being in one row of the ta...

12 mois il y a | 1 réponse | 0

1

réponse