photo

Chesus


Last seen: environ 2 mois 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?

environ un an 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...

environ un an 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...

environ un an 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?

environ un an 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 ...

environ un an 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...

environ un an 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...

environ un an il y a | 1 réponse | 0

1

réponse