Re: [Pdl-general] rotate matrix

2023-10-18 Thread Ingo Schmid
Dear all, I know I join late to the discussion, let me just point to the excellent PDL::Transform module, which I have used successfully to perform rotations in the past. May be using t_linear can save you several headaches - or not. Currently, I lack time to delve into your specific problem.

Re: [Pdl-general] rotate matrix

2023-10-16 Thread Luis Mochan
On Sun, Oct 15, 2023 at 05:26:12PM -0700, Mark NanoNebulas wrote: > ... > could you put the Rotxz into 4178 dimensions I dont understand how your > doing it in 3 The rotation matrix is a 3x3 matrix. It can operate on a column vector (1x3 matrix) or on many column vectors at once (on an Nx3

Re: [Pdl-general] rotate matrix

2023-10-15 Thread Mark NanoNebulas
here is the big orbitals and all there combinations, I also would like to show you that $n is important( I noticed you took it out) in that it can give you all the colors... $Best, -Mark Baker use PDL; use PDL::Complex; use PDL::Graphics::TriD; use PDL::NiceSlice; use PDL::Math;

Re: [Pdl-general] rotate matrix

2023-10-15 Thread Mark NanoNebulas
i found the torus matrix here $xxx = $xx*sin($yy)*cos($zz); $yyy = $xx*cos($yy)*cos($zz); $zzz = $xx*sin($zz); and if you add the $xx to $xxx and $yyy you get bigger orbs like $xxx = $xx*sin($yy)*cos($zz)+$xx; $yyy = $xx*cos($yy)*cos($zz)+$xx; $zzz = $xx*sin($zz); would that be all the

Re: [Pdl-general] rotate matrix

2023-10-15 Thread Mark NanoNebulas
the s orbital is x y z the p orbital is the d orbitals are xxx yyy zzz is that right and can they be used to describe all atoms ??? -Mark Baker On Sun, Oct 15, 2023 at 5:26 PM Mark NanoNebulas wrote: > have you used the range function ??? here i have all orbitals that can be >

Re: [Pdl-general] rotate matrix

2023-10-15 Thread Mark NanoNebulas
have you used the range function ??? here i have all orbitals that can be without using hold3d(); could you put the Rotxz into 4178 dimensions I dont understand how your doing it in 3 here are all the orbitals i got 14 of them total in your opinion can i use these to describe all the atoms

Re: [Pdl-general] rotate matrix

2023-10-14 Thread Luis Mochan
This worked for me to generate x-z d orbitals. The other planes are similar. I simply applied 4 different 45 degree rotations to your points and plotted them all together. I added two additional points to fix the scale. ## use PDL; use PDL::Complex;

Re: [Pdl-general] rotate matrix

2023-10-14 Thread Mark NanoNebulas
i found out how to move the point in the y axis here $dd++; $xxx = $xx*cos($yy)*sin($zz)+sin($xx); ### cos change the spin of the electron here $yyy = $xx*sin($yy)*sin($zz)+sin($xx+$dd); ### sin $zzz = $xx*cos($zz); ### cos this seems to work but can it make all the d orbitals i need ???

Re: [Pdl-general] rotate matrix

2023-10-14 Thread Luis Mochan
Hi, I didn't quite understand the code. I simplified it a bit, removed many noop instructions, changed the speed, negated the twiddling and the result looks like a nice lobe of a p orbital, made up of points along some spiral, rotating about its axis. Is this the rotation you want or do you want

Re: [Pdl-general] rotate matrix

2023-10-13 Thread Mark NanoNebulas
I some what found an answer i had to change the geometry to get an orb in the center position which i found to be $xxx = $xx*cos($yy)*sin($zz)+sin($xx); ### $yyy = $xx*sin($yy)*sin($zz)+sin($xx); ### $zzz = $xx*cos($zz); which all together gives 14 orbs 8 with +sin($xx) and 6 regular but the

[Pdl-general] rotate matrix

2023-10-13 Thread Mark NanoNebulas
Hi im trying to rotate this obital so that i can place them all over in balanced arrangements of orbs like the chemistry book says but i dont know how to rotate a matrix in all directions, can anybody help heres the code ## use PDL; use