Recent content by relroy

  1. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Ok will look into that. Any thought on the complexinfinity input part?
  2. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Hello again Dale, I was testing the codes and I found that it doesn't work for all inputs. Examples for which inputs are not as expected:- (i)[I,2I,4I] -> No output graph just a message saying DrawChainSegment is not a graphics prmitive or directive (ii)[1,2,4] -> Same o/p as above, if all...
  3. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Yes! I think that does the trick. Thanks for your patience its been a great help. If I get any other qs I know where to come :-)
  4. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    I tried the above suggestions but it gives the wrong output ie. the big circle - the required arc even for [1,I,4] In the present function: for smaller startangles eg,[1,I,4] we get correct output but for greater startangles eg.[10,I,4] we get wrong output. Can you think of some other way to...
  5. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Wow its a simple solution and serves the purpose! Thanks Dale! I have one more query. This time about the circular arc which you helped with in the previous posts. The problem with the current function shown below is that is startingangle is less than endingangle it draws the arc but if its...
  6. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Sorry abt that, I am indeed using this package called ConformalGeometry.nb and they are defined somewhere in there. Is the code for these 2 needed or is their usage enough? Your help is much appreciated.
  7. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    ToR2 and LinearDependentQ are inbuilt functions. ToR2 of a+bi returns (a,b) and lineardependentq checks if the inputs are collinear.
  8. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    For [z0,Complexinfinity,z2] we have to draw a line going from z0 to a distant point ("infinity") then second line coming from "infinity" to z2. This "infinity" lies to left of z0 and right of z2 so it should like:- _________________. z0...
  9. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Hi again, This time I have question about drawing line segments. I have a code to draw a line joining 3 collinear points:- DrawChainSegment[z0_, z1_, z2_] := Module[{output, \[Gamma], t, endpoint1, endpoint2}, If[ToR2[z2 - z1].ToR2[z0 - z1] < 0, (*The output is a single line...
  10. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Yes I only want to find center and radius. And these equations do look like they will work. But I have a few, last possibly elementary questions abt this circle module. Since the inputs I have are complex numbers z0,z1,z2 and these equations need me to add the squares of the coordinates. For...
  11. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Thanks again for the reply Dale. One last q:- Now there are three points on the circumference of the circle joining which we get 2 chords, like in here -> http://local.wasp.uwa.edu.au/~pbourke/geometry/circlefrom3/ The perpendicular bisectors of these 2 chords meet at the center. And...
  12. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Hello Dale, Thanks for the reply. I went through those equations but I am not actually looking to draw a circle. It is just an arc of the circle which goes from one endpoint to the other passing through the point between ie my aim is to just join 3 points. In other words I have to give three...
  13. R

    Mathematica Mathematica Code Help: Draw Chain Segments

    Hello, I am writing a code in Mathematica to draw chain segements (Conformal Geometry - Hermetian matrix chains). The purpose of the code is to take 3 complex numbers as input and test if they are collinear or not. If collinear, output should be a line else a circle or an arc passing through...
Back
Top