I did download it and moved it into the same file with the matlab files just as my lecturer instructed me to do. But it still shows invalid to me but in my peers comupters it succesfully executes the action
This line of code (commented out so I can run other commands later in the comment) is not syntactically valid, as it has three ( and two ). I assume you ran it and then deleted one of the closing parentheses. Where was that closing parenthesis? Was it at the end of the line?
%{
value = int(int(6*x*y, z, 0, 1 + x + y), y, 0, sqrt(x),x,0,1
%}
If it was, the inner call to int looks fine. [Since z doesn't appear in 6*x*y, you're integrating a constant.]
syms x y z
innerIntegral = int(6*x*y, z, 0, 1 + x + y)
innerIntegral =
If you're trying to perform a triple integral, the innermost one over z, the middle one over y, and the outermost over x, you're missing two closing parentheses and an extra int( call.
middleIntegral = int(innerIntegral, y, 0, sqrt(x))
middleIntegral =
outerIntegral = int(middleIntegral, x, 0, 1)
outerIntegral =
Or putting them all together in one line:
% Added vvvv v v
value = int(int(int(6*x*y, z, 0, 1 + x + y), y, 0, sqrt(x)),x,0,1)
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Translated by
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.