Results 1 to 2 of 2

Math Help - Defining function

  1. #1
    Newbie
    Joined
    Jan 2009
    Posts
    1

    Defining function

    Hi,

    I have matrixes A={{1,1}},B={{z, 0}, {0, z}} and C=Transpose[A]. After multiplying A.B.C I get expected result {{2z}}. Furthermore I tried to define function f[z_]:=A.B.C and plot graph of this function like Plot[f[a],{a,1,2}]. Now I did not get expected result, the linear function, but I got empty plot. Where I do a mistake? Help me, please.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member
    Joined
    Aug 2008
    Posts
    74
    Thanks
    1
    first of all, A.B.C is "the matrix" {{2z}}, and Mathematica doesn't know how to build graphs of matrices. if you write (A.B.C)[[1,1]] you'll be getting 2z (this [[1,1]] says that you're taking the (1,1)-st element of that "matrix")

    second of all, instead of f[z_]:=(A.B.C)[[1,1]], write it as f[z_]=(A.B.C)[[1,1]] and you should be good (I'm sure not why it doesn't build the plot when you write it with := but sometimes it behaves like that)
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. defining of the function (Mathematica)
    Posted in the Math Software Forum
    Replies: 0
    Last Post: October 24th 2011, 03:36 AM
  2. Defining a function in mathematica
    Posted in the Math Software Forum
    Replies: 1
    Last Post: March 22nd 2010, 09:36 AM
  3. Problem defining a function
    Posted in the Advanced Algebra Forum
    Replies: 0
    Last Post: January 21st 2009, 11:45 AM
  4. Defining a function [Mathematica]
    Posted in the Math Software Forum
    Replies: 6
    Last Post: September 28th 2008, 01:13 PM
  5. problem with defining a function
    Posted in the Advanced Math Topics Forum
    Replies: 3
    Last Post: August 29th 2005, 08:23 AM

Search Tags


/mathhelpforum @mathhelpforum