I 'm busy with calculate the intersections of two lines as done here.
I think the variable y2 is currently the problem because it is a single value. In python(with numpy) i'm able to create a ones(length) array. How do i create a array (arbritrary length) where all values are the same?
Solved! Go to Solution.
Always attach your sheet, not just a picture.
root needs a guess value x1 but in your setup x1 is a range, which can't work.
You may consider using root by providing a range for x1 instead of a guess value or you may create a function with the guess value as its argument and feed it with a vector of appropriate guess values_
EDIT: But in case you ae nonetheless still looking for a way to create a vector with all the values the same, here is one way to do it
Always attach your sheet, not just a picture.
root needs a guess value x1 but in your setup x1 is a range, which can't work.
You may consider using root by providing a range for x1 instead of a guess value or you may create a function with the guess value as its argument and feed it with a vector of appropriate guess values_
EDIT: But in case you ae nonetheless still looking for a way to create a vector with all the values the same, here is one way to do it