How can I get all possible coordinate from implicit function ?
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Teerapong Poltue
 am 5 Nov. 2020
  
    
    
    
    
    Kommentiert: Teerapong Poltue
 am 5 Nov. 2020
            How can I get all possible coordinate (x,y,z) from this function function
cos(x) + cos(y) + cos(z) = 0
I've tried this but, it did work.
syms X Y Z z 
counter = 1;
for x = -5:5
for y = -5:5
 Data.X(counter) = x;
 Data.Y(counter) = y;
 Data.Z(counter) = solve(cos(x) + cos(y) + cos(z) == 0,z);
 counter = counter + 1 ;
end
end
0 Kommentare
Akzeptierte Antwort
  Sean de Wolski
      
      
 am 5 Nov. 2020
        
      Bearbeitet: Sean de Wolski
      
      
 am 5 Nov. 2020
  
      zz = acos(-(cos(-5:5)+cos((-5:5).')))
% Check
norm(cos(-5:5) + cos((-5:5).') + cos(zz))
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Numbers and Precision finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

