laracoft's avatar

Gemini vs Claude with Boost?

Has anyone used both Gemini and Claude with Boost? Which is better and why?

1 like
5 replies
jlrdw's avatar

Have a look at Jeffrey's recent AI series where he discusses his choices.

1 like
laracoft's avatar

which one? i only caught the one where he installed boost

1 like
vincent15000's avatar

I don't have tested Boost yet.

But I regularly use the AI and Claude and Perplexity gave me very interesting results.

I never used Gemini for questions about coding.

jlrdw's avatar

I did use Gemini a while back to convert some python code where a bunch of the code had regular analytic geometry.

Like:

THETA = Z34 / abs(Z34) * (math.acos(X34 / math.sqrt(abs(X34) ** 2 + abs(Z34) ** 2)))
# quite a few lines similar to this.

I ask it to convert to numpy for the rotation between bends, it gave me:

def calculate_bend_rotation(p_prev, p_curr, p_next, p_after_next):
    v1 = p_curr - p_prev
    v2 = p_next - p_curr
    v3 = p_after_next - p_next

    n1 = np.cross(v1, v2)
    n2 = np.cross(v2, v3)

    dot_product = np.dot(n1, n2)
    magnitudes_product = np.linalg.norm(n1) * np.linalg.norm(n2)

    if magnitudes_product == 0:
        return 0

    angle_rad = np.arccos(np.clip(dot_product / magnitudes_product, -1.0, 1.0))

    direction_indicator = np.dot(v2, np.cross(n1, n2))

    if direction_indicator < 0:
        angle_rad = -angle_rad

    return np.degrees(angle_rad)

After testing (real World) by actually bending a tube, the code was correct. I also compared results with the original tube bending program, results were the same.

But this was just for fun as a lot of Freecad forum users use the numpy library. And I also have been converting sheet metal layout code from basic to python. Things like elbows, ogee offsets, rectangular to round ducts, etc. I know the analytic geometry math but am new to numpy. It just deals with things like multiplying matrices and matrix operations behind the scenes. The same math, but a big time saver done for you.

I admit I was surprised how accurate Gemini was. But I did not get it correct the first time, you have to ask a certain way.

1 like

Please or to participate in this conversation.