How to do this calculation with Max?

Oct 26, 2011 at 4:32pm

How to do this calculation with Max?

Any idea how to build this in max?

http://en.wikibooks.org/wiki/Trigonometry/Solving_Triangles_Given_SAS

this is all i have:

{
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "pak 180. 0.",
"fontsize" : 14.0,
"patching_rect" : [ 311.0, 274.0, 98.0, 23.0 ],
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-17″,
“fontname” : “Arial”,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “this is all I have”,
“fontsize” : 14.0,
“patching_rect” : [ 45.0, 31.0, 155.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-16″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “pak 0. 0.”,
“fontsize” : 14.0,
“patching_rect” : [ 310.0, 219.0, 65.0, 23.0 ],
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-15″,
“fontname” : “Arial”,
“outlettype” : [ "" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “- 180.”,
“fontsize” : 14.0,
“patching_rect” : [ 311.0, 307.0, 47.0, 23.0 ],
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-14″,
“fontname” : “Arial”,
“outlettype” : [ "float" ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “+ 0.”,
“fontsize” : 14.0,
“patching_rect” : [ 310.0, 245.0, 35.0, 23.0 ],
“numinlets” : 2,
“numoutlets” : 1,
“id” : “obj-13″,
“fontname” : “Arial”,
“outlettype” : [ "float" ]
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “unknown side”,
“presentation_rect” : [ 271.0, 340.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 176.0, 379.0, 116.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-7″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “unknown angle γ”,
“presentation_rect” : [ 489.0, 340.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 310.0, 379.0, 125.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-8″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “unknown angle β”,
“presentation_rect” : [ 59.0, 340.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 45.0, 379.0, 128.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-9″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “flonum”,
“presentation_rect” : [ 488.0, 362.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 311.0, 355.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-10″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
, {
“box” : {
“maxclass” : “flonum”,
“presentation_rect” : [ 271.0, 362.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 176.0, 355.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-11″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
, {
“box” : {
“maxclass” : “flonum”,
“presentation_rect” : [ 59.0, 362.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 45.0, 355.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-12″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “known angle c”,
“presentation_rect” : [ 271.0, 67.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 176.0, 77.0, 113.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-6″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “known side α”,
“presentation_rect” : [ 489.0, 67.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 314.0, 76.0, 95.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-5″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “known side b”,
“fontsize” : 14.0,
“patching_rect” : [ 45.0, 76.0, 93.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 0,
“id” : “obj-4″,
“fontname” : “Arial”
}

}
, {
“box” : {
“maxclass” : “flonum”,
“presentation_rect” : [ 289.0, 89.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 313.0, 98.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-3″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
, {
“box” : {
“maxclass” : “flonum”,
“presentation_rect” : [ 154.0, 89.0, 0.0, 0.0 ],
“fontsize” : 14.0,
“patching_rect” : [ 176.0, 98.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-2″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
, {
“box” : {
“maxclass” : “flonum”,
“fontsize” : 14.0,
“patching_rect” : [ 45.0, 98.0, 52.0, 23.0 ],
“numinlets” : 1,
“numoutlets” : 2,
“id” : “obj-1″,
“fontname” : “Arial”,
“outlettype” : [ "float", "bang" ]
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-17", 0 ],
“destination” : [ "obj-14", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-13", 0 ],
“destination” : [ "obj-17", 1 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-12", 0 ],
“destination” : [ "obj-15", 1 ],
“hidden” : 0,
“midpoints” : [ 54.5, 380.0, 36.0, 380.0, 36.0, 345.0, 365.5, 345.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-2", 0 ],
“destination” : [ "obj-15", 0 ],
“hidden” : 0,
“midpoints” : [ 185.5, 138.0, 319.5, 138.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-14", 0 ],
“destination” : [ "obj-10", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-15", 0 ],
“destination” : [ "obj-13", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}

#59565
Oct 26, 2011 at 5:18pm

it will probably be easier for you to use the [expr] object.

#214361
Oct 26, 2011 at 5:27pm

have a look at the expr object. it should help you put those formulas into action. I did the first one for you to give you an idea.

– Pasted Max Patch, click to expand. –

if you post patches to the forum, use copy compressed from the menu!!!

#214362
Oct 26, 2011 at 8:16pm

Fantastic!! thank you.

#214363

You must be logged in to reply to this topic.